Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001331/0.001331, allocations: 116.4 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001469/0.001469, allocations: 214.9 kB / 23.75 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.442/1.442, allocations: 230.5 MB / 257.4 MB, free: 7.992 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001909/0.001909, allocations: 59.91 kB / 377.8 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2433/0.2452, allocations: 53.41 MB / 431.2 MB, free: 6.805 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01418/0.2594, allocations: 11.05 MB / 442.3 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008763/0.2682, allocations: 3.697 MB / 446 MB, free: 7.992 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002577/0.2708, allocations: 83.44 kB / 446 MB, free: 7.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003167/0.2739, allocations: 0.8807 MB / 446.9 MB, free: 7.027 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004235/0.2782, allocations: 0.9165 MB / 447.8 MB, free: 6.105 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001712/0.2799, allocations: 491.1 kB / 448.3 MB, free: 5.625 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005415/0.2853, allocations: 2.952 MB / 451.3 MB, free: 2.668 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003113/0.2884, allocations: 1.564 MB / 452.8 MB, free: 1.039 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00298/0.2914, allocations: 1.421 MB / 454.2 MB, free: 15.61 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004117/0.2955, allocations: 1.798 MB / 456 MB, free: 13.81 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001207/0.2967, allocations: 372 kB / 456.4 MB, free: 13.45 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001594/0.2983, allocations: 487.7 kB / 456.9 MB, free: 12.97 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001508/0.2998, allocations: 1.099 MB / 458 MB, free: 11.87 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003235/0.303, allocations: 1.676 MB / 459.7 MB, free: 10.18 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007512/0.3106, allocations: 4.908 MB / 464.6 MB, free: 5.258 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.047e-05/0.3106, allocations: 0 / 464.6 MB, free: 5.258 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3106, allocations: 0 / 464.6 MB, free: 5.258 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002054/0.3108, allocations: 0 / 464.6 MB, free: 5.258 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.009757/0.3205, allocations: 3.405 MB / 468 MB, free: 1.801 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.552e-05/0.3206, allocations: 8.031 kB / 468 MB, free: 1.793 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000641/0.3212, allocations: 370.9 kB / 468.3 MB, free: 1.422 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001081/0.3223, allocations: 362.8 kB / 468.7 MB, free: 1.066 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003948/0.3263, allocations: 1.744 MB / 470.4 MB, free: 15.28 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001797/0.3264, allocations: 197.1 kB / 470.6 MB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004283/0.3269, allocations: 252 kB / 470.9 MB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006111/0.333, allocations: 3.279 MB / 474.2 MB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.385e-05/0.3331, allocations: 7.938 kB / 474.2 MB, free: 11.47 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002354/0.3333, allocations: 104 kB / 474.3 MB, free: 11.37 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001516/0.3334, allocations: 128.8 kB / 474.4 MB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005171/0.3386, allocations: 2.748 MB / 477.1 MB, free: 8.484 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01829/0.3569, allocations: 10.22 MB / 487.4 MB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001902/0.3588, allocations: 1.073 MB / 488.4 MB, free: 12.81 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001267/0.3601, allocations: 0.7032 MB / 489.1 MB, free: 12.1 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000247/0.3603, allocations: 54.03 kB / 489.2 MB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.345e-05/0.3604, allocations: 51.5 kB / 489.2 MB, free: 11.99 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 3.296e-06/0.3604, allocations: 0 / 489.2 MB, free: 11.99 MB / 398.1 MB Notification: Performance of matching and sorting (n=123): time 0.01603/0.3764, allocations: 6.637 MB / 495.9 MB, free: 5.316 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.816e-05/0.3764, allocations: 64.41 kB / 495.9 MB, free: 5.242 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002853/0.3793, allocations: 1.794 MB / 497.7 MB, free: 3.449 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001414/0.3794, allocations: 49.64 kB / 497.8 MB, free: 3.395 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001093/0.3805, allocations: 1.31 MB / 499.1 MB, free: 2.07 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004445/0.381, allocations: 452.2 kB / 499.5 MB, free: 1.625 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004778/0.3815, allocations: 291.5 kB / 499.8 MB, free: 1.332 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.3816, allocations: 305.1 kB / 0.4884 GB, free: 1.031 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001293/0.3829, allocations: 0.7847 MB / 0.4892 GB, free: 252 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001755/0.3846, allocations: 1.284 MB / 0.4904 GB, free: 14.73 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003277/0.3879, allocations: 2.218 MB / 0.4926 GB, free: 12.28 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-05/0.3879, allocations: 4 kB / 0.4926 GB, free: 12.28 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004946/0.3929, allocations: 2.487 MB / 0.495 GB, free: 9.77 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.716e-05/0.3929, allocations: 12 kB / 0.495 GB, free: 9.758 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.691e-05/0.3929, allocations: 16 kB / 0.495 GB, free: 9.742 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000687/0.3936, allocations: 247.5 kB / 0.4953 GB, free: 9.488 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001568/0.3952, allocations: 415.3 kB / 0.4957 GB, free: 9.082 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003154/0.3984, allocations: 3.027 MB / 0.4986 GB, free: 5.828 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001775/0.4001, allocations: 131.9 kB / 0.4988 GB, free: 5.699 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001658/0.4003, allocations: 75.92 kB / 0.4988 GB, free: 5.625 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001682/0.402, allocations: 0.8163 MB / 0.4996 GB, free: 4.801 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004857/0.4025, allocations: 198.7 kB / 0.4998 GB, free: 4.605 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00378/0.4062, allocations: 2.043 MB / 0.5018 GB, free: 2.539 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.415e-05/0.4063, allocations: 12 kB / 0.5018 GB, free: 2.527 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.4063, allocations: 4 kB / 0.5018 GB, free: 2.523 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.363e-05/0.4063, allocations: 3.984 kB / 0.5018 GB, free: 2.52 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009505/0.4158, allocations: 4.709 MB / 0.5064 GB, free: 13.71 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.086e-05/0.4158, allocations: 11.94 kB / 0.5064 GB, free: 13.7 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001162/0.417, allocations: 263.6 kB / 0.5067 GB, free: 13.44 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005918/0.4176, allocations: 207.5 kB / 0.5069 GB, free: 13.23 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.949e-05/0.4176, allocations: 24 kB / 0.5069 GB, free: 13.2 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003087/0.4207, allocations: 3 MB / 0.5098 GB, free: 9.973 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/0.4207, allocations: 3.984 kB / 0.5098 GB, free: 9.969 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005214/0.4259, allocations: 3.144 MB / 0.5129 GB, free: 6.77 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001171/0.4271, allocations: 362.6 kB / 0.5133 GB, free: 6.414 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00032/0.4274, allocations: 27.94 kB / 0.5133 GB, free: 6.387 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001009/0.4284, allocations: 95.86 kB / 0.5134 GB, free: 6.293 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000188/0.4286, allocations: 88.84 kB / 0.5135 GB, free: 6.207 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.215e-05/0.4287, allocations: 39.98 kB / 0.5135 GB, free: 6.168 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002116/0.4308, allocations: 1.22 MB / 0.5147 GB, free: 4.957 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4308, allocations: 0 / 0.5147 GB, free: 4.957 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001683/0.4325, allocations: 491.9 kB / 0.5152 GB, free: 4.477 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00567/0.4382, allocations: 3.791 MB / 0.5189 GB, free: 0.6172 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003945/0.4421, allocations: 2.121 MB / 0.5209 GB, free: 14.47 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.57e-06/0.4421, allocations: 3.938 kB / 0.5209 GB, free: 14.46 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001981/0.4441, allocations: 1.118 MB / 0.522 GB, free: 13.31 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002478/0.4466, allocations: 498 kB / 0.5225 GB, free: 12.84 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2388/0.6854, allocations: 18.81 MB / 0.5409 GB, free: 99.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001565/0.687, allocations: 2.015 MB / 0.5428 GB, free: 98.66 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00125/0.6883, allocations: 0.4926 MB / 0.5433 GB, free: 98.64 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001027/0.6893, allocations: 1.018 MB / 0.5443 GB, free: 97.82 MB / 446.1 MB Notification: Performance of SimCode: time 9.32e-07/0.6893, allocations: 0 / 0.5443 GB, free: 97.82 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09519/0.7845, allocations: 47.69 MB / 0.5909 GB, free: 55.15 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.71/15.49, allocations: 11.86 kB / 0.5909 GB, free: 55.14 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable smpm.is[1] in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv. Warning: Get data of variable smpm.is[1] from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv failed! Error: Could not read variable smpm.is[2] in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv. Warning: Get data of variable smpm.is[2] from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv failed! Error: Could not read variable inertiaLoad.w in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv. Warning: Get data of variable inertiaLoad.w from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv failed! Error: Could not read variable multiSensor.flange_a.phi in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv. Warning: Get data of variable multiSensor.flange_a.phi from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.39292193700021]