Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.INV3S.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.INV3S,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_INV3S",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.INV3S,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_INV3S",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00124/0.00124, allocations: 102.9 kB / 17.16 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001272/0.001272, allocations: 190 kB / 18.07 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.503/1.503, allocations: 205.1 MB / 223.9 MB, free: 12.39 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001111/0.001111, allocations: 47.94 kB / 280.1 MB, free: 3.48 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09173/0.09285, allocations: 46.62 MB / 326.7 MB, free: 4.801 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.INV3S): time 0.002555/0.09543, allocations: 1.581 MB / 328.3 MB, free: 3.203 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001628/0.09709, allocations: 0.9023 MB / 329.2 MB, free: 2.293 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.103e-05/0.09714, allocations: 0 / 329.2 MB, free: 2.293 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 8.879e-05/0.09725, allocations: 15.92 kB / 329.2 MB, free: 2.277 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 6.692e-05/0.09732, allocations: 15.91 kB / 329.2 MB, free: 2.262 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002115/0.09754, allocations: 43.91 kB / 329.2 MB, free: 2.219 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001293/0.09768, allocations: 123.7 kB / 329.4 MB, free: 2.098 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.251e-05/0.09778, allocations: 16 kB / 329.4 MB, free: 2.082 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003789/0.09816, allocations: 383.2 kB / 329.8 MB, free: 1.707 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.028e-05/0.09826, allocations: 67.77 kB / 329.8 MB, free: 1.641 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.807e-05/0.09831, allocations: 4 kB / 329.8 MB, free: 1.637 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.228e-05/0.09834, allocations: 4 kB / 329.8 MB, free: 1.633 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.536e-05/0.09844, allocations: 67.64 kB / 329.9 MB, free: 1.566 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000114/0.09856, allocations: 111.2 kB / 330 MB, free: 1.457 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002966/0.09887, allocations: 342.8 kB / 330.3 MB, free: 1.121 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.09888, allocations: 3.938 kB / 330.3 MB, free: 1.117 MB / 270.1 MB Notification: Performance of FrontEnd: time 7.52e-07/0.09888, allocations: 0 / 330.3 MB, free: 1.117 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.09889, allocations: 0 / 330.3 MB, free: 1.117 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007564/0.09965, allocations: 0.7191 MB / 331.1 MB, free: 332 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.0997, allocations: 16.03 kB / 331.1 MB, free: 316 kB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.717e-05/0.09975, allocations: 42.73 kB / 331.1 MB, free: 264 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.777e-05/0.09982, allocations: 36.47 kB / 331.2 MB, free: 228 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002861/0.1001, allocations: 274.4 kB / 331.4 MB, free: 15.91 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.355e-05/0.1001, allocations: 8.375 kB / 331.4 MB, free: 15.9 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.651e-05/0.1002, allocations: 12.31 kB / 331.4 MB, free: 15.89 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002968/0.1005, allocations: 125.7 kB / 331.6 MB, free: 15.76 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.274e-06/0.1005, allocations: 0 / 331.6 MB, free: 15.76 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.271e-05/0.1005, allocations: 4 kB / 331.6 MB, free: 15.76 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.658e-06/0.1005, allocations: 0 / 331.6 MB, free: 15.76 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001422/0.1007, allocations: 71.95 kB / 331.6 MB, free: 15.69 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006192/0.1013, allocations: 456.5 kB / 332.1 MB, free: 15.19 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001763/0.1015, allocations: 94.53 kB / 332.2 MB, free: 15.09 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001474/0.1016, allocations: 80.89 kB / 332.3 MB, free: 15.01 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.318e-05/0.1017, allocations: 11.98 kB / 332.3 MB, free: 15 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003505/0.102, allocations: 214.5 kB / 332.5 MB, free: 14.76 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.382e-06/0.102, allocations: 0 / 332.5 MB, free: 14.76 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007635/0.1028, allocations: 456.4 kB / 332.9 MB, free: 14.29 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.364e-05/0.1029, allocations: 170.2 kB / 333.1 MB, free: 14.08 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006421/0.1036, allocations: 0.5129 MB / 333.6 MB, free: 13.56 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.96e-05/0.1036, allocations: 37.64 kB / 333.6 MB, free: 13.52 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.946e-05/0.1037, allocations: 105.1 kB / 333.7 MB, free: 13.41 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.285e-05/0.1037, allocations: 23.72 kB / 333.8 MB, free: 13.39 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001053/0.1038, allocations: 81.41 kB / 333.8 MB, free: 13.3 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.1039, allocations: 330.8 kB / 334.2 MB, free: 12.97 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001277/0.1041, allocations: 51.97 kB / 334.2 MB, free: 12.92 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001246/0.1042, allocations: 73.69 kB / 334.3 MB, free: 12.84 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003226/0.1045, allocations: 347.2 kB / 334.6 MB, free: 12.45 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1046, allocations: 0 / 334.6 MB, free: 12.45 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005053/0.1051, allocations: 384.3 kB / 335 MB, free: 12.04 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.43e-05/0.1052, allocations: 122.8 kB / 335.1 MB, free: 11.9 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.1052, allocations: 0 / 335.1 MB, free: 11.9 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/0.1052, allocations: 0 / 335.1 MB, free: 11.9 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.935e-05/0.1052, allocations: 4 kB / 335.1 MB, free: 11.89 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.1052, allocations: 4.016 kB / 335.1 MB, free: 11.89 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001372/0.1054, allocations: 11.98 kB / 335.1 MB, free: 11.88 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.581e-05/0.1054, allocations: 48.12 kB / 335.2 MB, free: 11.83 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.t_next,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.y_old,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.x,$PRE.iNV3S.inertialDelaySensitive.x,iNV3S.yy,iNV3S.nextstate,x_table.y,e_table.y,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003583/0.1058, allocations: 362.1 kB / 335.5 MB, free: 11.44 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.175e-05/0.1059, allocations: 39.53 kB / 335.6 MB, free: 11.4 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001009/0.106, allocations: 67.14 kB / 335.6 MB, free: 11.33 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.106, allocations: 4 kB / 335.7 MB, free: 11.33 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.106, allocations: 0 / 335.7 MB, free: 11.33 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.106, allocations: 0 / 335.7 MB, free: 11.33 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009444/0.107, allocations: 0.8134 MB / 336.5 MB, free: 10.43 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.107, allocations: 4 kB / 336.5 MB, free: 10.43 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.148e-06/0.107, allocations: 0 / 336.5 MB, free: 10.43 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.107, allocations: 0 / 336.5 MB, free: 10.43 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.917e-05/0.107, allocations: 16.17 kB / 336.5 MB, free: 10.41 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.107, allocations: 4 kB / 336.5 MB, free: 10.41 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.107, allocations: 3.938 kB / 336.5 MB, free: 10.41 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006347/0.1077, allocations: 0.5253 MB / 337 MB, free: 9.84 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002796/0.108, allocations: 244.3 kB / 337.3 MB, free: 9.582 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.257e-05/0.108, allocations: 12 kB / 337.3 MB, free: 9.57 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000135/0.1082, allocations: 15.98 kB / 337.3 MB, free: 9.555 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.364e-05/0.1083, allocations: 23.92 kB / 337.3 MB, free: 9.531 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.885e-05/0.1083, allocations: 51.92 kB / 337.4 MB, free: 9.48 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004227/0.1088, allocations: 386.9 kB / 337.7 MB, free: 9.105 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1088, allocations: 0 / 337.7 MB, free: 9.105 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002721/0.109, allocations: 40 kB / 337.8 MB, free: 9.066 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,iNV3S.nextstate,iNV3S.yy,iNV3S.inertialDelaySensitive.x,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.y_old,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,iNV3S.yy,iNV3S.nextstate,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.t_next,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,iNV3S.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00105/0.1101, allocations: 1.085 MB / 338.9 MB, free: 7.93 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004971/0.1106, allocations: 441.4 kB / 339.3 MB, free: 7.449 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.1106, allocations: 0 / 339.3 MB, free: 7.449 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003109/0.1109, allocations: 373.6 kB / 339.7 MB, free: 7.035 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005834/0.1115, allocations: 125.2 kB / 339.8 MB, free: 6.91 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003231/0.1148, allocations: 2.798 MB / 342.6 MB, free: 4 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004233/0.1152, allocations: 0.8022 MB / 343.4 MB, free: 3.172 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 5.194e-05/0.1153, allocations: 12.64 kB / 343.4 MB, free: 3.16 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.368e-05/0.1153, allocations: 23.44 kB / 343.4 MB, free: 3.137 MB / 286.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1153, allocations: 0 / 343.4 MB, free: 3.137 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4621/0.5774, allocations: 5.506 MB / 348.9 MB, free: 13.55 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003117/0.5778, allocations: 189.1 kB / 349.1 MB, free: 13.3 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.884/2.462, allocations: 0 / 349.1 MB, free: 13.3 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.INV3S.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.INV3S.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.INV3S.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.INV3S.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.INV3S_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_INV3S_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_INV3S.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.INV3S.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.INV3S_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/INV3S/INV3S.csv","../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.INV3S.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches