Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008369/0.0008369, allocations: 87.62 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003295/0.003295, allocations: 164.6 kB / 24.69 MB, free: 9.43 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.834/0.834, allocations: 158.6 MB / 186.5 MB, free: 3.031 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 298.5 MB, free: 3.492 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.142e-05/2.288e-05, allocations: 2.281 kB / 298.5 MB, free: 3.488 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.149/0.149, allocations: 9.594 MB / 308.1 MB, free: 10.69 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.007067/0.156, allocations: 3.482 MB / 311.5 MB, free: 8.285 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002023/0.1581, allocations: 80.44 kB / 311.6 MB, free: 8.246 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002245/0.1603, allocations: 0.8066 MB / 312.4 MB, free: 7.836 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003279/0.1636, allocations: 0.9551 MB / 313.4 MB, free: 7.211 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001213/0.1648, allocations: 468.5 kB / 313.8 MB, free: 6.926 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.004239/0.169, allocations: 3.055 MB / 316.9 MB, free: 5.336 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002281/0.1713, allocations: 1.481 MB / 318.4 MB, free: 4.574 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004326/0.1756, allocations: 2.05 MB / 320.4 MB, free: 3.621 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003106/0.1788, allocations: 1.515 MB / 321.9 MB, free: 3.082 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001172/0.1799, allocations: 373.1 kB / 322.3 MB, free: 3.082 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001348/0.1813, allocations: 477 kB / 322.8 MB, free: 3.027 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008842/0.1822, allocations: 1.114 MB / 323.9 MB, free: 2.191 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002138/0.1843, allocations: 1.129 MB / 325 MB, free: 1.523 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004983/0.1893, allocations: 4.938 MB / 329.9 MB, free: 13.88 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.1893, allocations: 2.844 kB / 330 MB, free: 13.88 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1893, allocations: 0 / 330 MB, free: 13.88 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.000189/0.1895, allocations: 0 / 330 MB, free: 13.88 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 660 * Number of variables: 660 Notification: Performance of Generate backend data structure: time 0.006965/0.1964, allocations: 3.371 MB / 333.3 MB, free: 11.55 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.274e-05/0.1965, allocations: 13.58 kB / 333.3 MB, free: 11.54 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005717/0.1971, allocations: 363.2 kB / 333.7 MB, free: 11.27 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007679/0.1978, allocations: 352.8 kB / 334 MB, free: 11.07 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002421/0.2003, allocations: 1.634 MB / 335.7 MB, free: 9.391 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001152/0.2004, allocations: 189.3 kB / 335.9 MB, free: 9.203 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005433/0.2009, allocations: 245.5 kB / 336.1 MB, free: 8.965 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004092/0.205, allocations: 3.367 MB / 339.5 MB, free: 5.5 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.51e-05/0.2051, allocations: 7.953 kB / 339.5 MB, free: 5.492 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001631/0.2052, allocations: 100 kB / 339.6 MB, free: 5.395 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001149/0.2053, allocations: 128.8 kB / 339.7 MB, free: 5.27 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003315/0.2087, allocations: 2.74 MB / 342.4 MB, free: 2.516 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01183/0.2205, allocations: 9.463 MB / 351.9 MB, free: 8.715 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00125/0.2217, allocations: 1.059 MB / 353 MB, free: 7.645 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007727/0.2225, allocations: 0.707 MB / 353.7 MB, free: 6.934 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001742/0.2227, allocations: 48.95 kB / 353.7 MB, free: 6.887 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.978e-05/0.2227, allocations: 43.56 kB / 353.8 MB, free: 6.832 MB / 314.7 MB Notification: Performance of pre-optimization done (n=97): time 3.166e-06/0.2227, allocations: 1.594 kB / 353.8 MB, free: 6.832 MB / 314.7 MB Notification: Performance of matching and sorting (n=122): time 0.01036/0.2331, allocations: 6.759 MB / 360.5 MB, free: 40 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.504e-05/0.2331, allocations: 64.41 kB / 360.6 MB, free: 15.96 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002151/0.2353, allocations: 1.82 MB / 362.4 MB, free: 14.14 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.249e-05/0.2354, allocations: 45.7 kB / 362.4 MB, free: 14.09 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006757/0.236, allocations: 1.31 MB / 363.7 MB, free: 12.77 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002833/0.2363, allocations: 436.2 kB / 364.2 MB, free: 12.34 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003305/0.2366, allocations: 295.4 kB / 364.5 MB, free: 12.05 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0003564/0.237, allocations: 313 kB / 364.8 MB, free: 11.74 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008345/0.2378, allocations: 0.7769 MB / 365.5 MB, free: 10.96 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001046/0.2389, allocations: 1.293 MB / 366.8 MB, free: 9.441 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00202/0.2409, allocations: 2.219 MB / 369.1 MB, free: 6.992 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.447e-06/0.2409, allocations: 4 kB / 369.1 MB, free: 6.988 MB / 330.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003049/0.244, allocations: 2.479 MB / 371.5 MB, free: 4.488 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.637e-05/0.244, allocations: 15.98 kB / 371.6 MB, free: 4.473 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.897e-05/0.244, allocations: 16 kB / 371.6 MB, free: 4.457 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004055/0.2444, allocations: 235.6 kB / 371.8 MB, free: 4.215 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007907/0.2452, allocations: 427.2 kB / 372.2 MB, free: 3.797 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001803/0.247, allocations: 3.019 MB / 375.2 MB, free: 0.543 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001082/0.2481, allocations: 127.8 kB / 375.4 MB, free: 428 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.135e-05/0.2482, allocations: 68 kB / 375.4 MB, free: 360 kB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * 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.001294/0.2495, allocations: 0.8252 MB / 376.3 MB, free: 15.51 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003132/0.2498, allocations: 198.7 kB / 376.4 MB, free: 15.32 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002168/0.2519, allocations: 2.023 MB / 378.5 MB, free: 13.27 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.965e-06/0.252, allocations: 15.98 kB / 378.5 MB, free: 13.25 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.252, allocations: 4 kB / 378.5 MB, free: 13.25 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/0.252, allocations: 11.97 kB / 378.5 MB, free: 13.24 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00561/0.2576, allocations: 4.432 MB / 382.9 MB, free: 8.719 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.2576, allocations: 0 / 382.9 MB, free: 8.719 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005889/0.2582, allocations: 267.6 kB / 383.2 MB, free: 8.457 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003154/0.2585, allocations: 207.5 kB / 383.4 MB, free: 8.242 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.342e-05/0.2585, allocations: 28 kB / 383.4 MB, free: 8.215 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001867/0.2604, allocations: 2.992 MB / 386.4 MB, free: 4.988 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.58e-06/0.2604, allocations: 11.91 kB / 386.4 MB, free: 4.977 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003117/0.2635, allocations: 3.125 MB / 389.6 MB, free: 1.797 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008329/0.2644, allocations: 358.7 kB / 389.9 MB, free: 1.445 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001857/0.2646, allocations: 24 kB / 389.9 MB, free: 1.422 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000579/0.2651, allocations: 95.86 kB / 390 MB, free: 1.328 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001358/0.2653, allocations: 88.78 kB / 390.1 MB, free: 1.242 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.964e-05/0.2653, allocations: 32 kB / 390.1 MB, free: 1.211 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001472/0.2668, allocations: 1.22 MB / 391.4 MB, free: 0 / 346.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2668, allocations: 0 / 391.4 MB, free: 0 / 346.7 MB Notification: Performance of remove unused functions: time 0.001399/0.2682, allocations: 492 kB / 391.8 MB, free: 15.52 MB / 362.7 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 (120): * Single equations (assignments): 116 * 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.003958/0.2721, allocations: 3.772 MB / 395.6 MB, free: 11.68 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002738/0.2749, allocations: 2.114 MB / 397.7 MB, free: 9.539 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.522e-06/0.2749, allocations: 0 / 397.7 MB, free: 9.539 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001236/0.2761, allocations: 1.118 MB / 398.8 MB, free: 8.387 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001982/0.2781, allocations: 498.7 kB / 399.3 MB, free: 7.906 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02357/0.3017, allocations: 18.8 MB / 418.1 MB, free: 4.34 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001187/0.3029, allocations: 1.454 MB / 419.6 MB, free: 2.848 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00101/0.3039, allocations: 0.4999 MB / 420.1 MB, free: 2.344 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009816/0.3049, allocations: 1.008 MB / 421.1 MB, free: 1.332 MB / 378.7 MB Notification: Performance of SimCode: time 1.693e-06/0.3049, allocations: 7.938 kB / 421.1 MB, free: 1.324 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07002/0.3749, allocations: 49.08 MB / 470.2 MB, free: 108 kB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.47/8.845, allocations: 7.875 kB / 470.2 MB, free: 100 kB / 426.7 MB " [Timeout remaining time 651] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable inertiaLoad.w in file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.csv. Warning: Get data of variable inertiaLoad.w from file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.csv failed! Error: Could not read variable speedSensor.flange.phi in file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.csv. Warning: Get data of variable speedSensor.flange.phi from file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.89312778506428]