Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001167/0.001167, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001293/0.001293, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.24/1.24, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 64.17 kB / 307 MB, free: 0.5391 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08804/0.08926, allocations: 50.53 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.1332/0.2225, allocations: 14.71 MB / 372.3 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01515/0.2377, allocations: 20.72 MB / 393 MB, free: 180 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008236/0.2386, allocations: 30.47 kB / 393 MB, free: 168 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00227/0.2409, allocations: 1.234 MB / 394.3 MB, free: 15.51 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004729/0.2456, allocations: 2.312 MB / 396.6 MB, free: 14.1 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002998/0.2486, allocations: 1.442 MB / 398 MB, free: 13.32 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007177/0.2558, allocations: 6.528 MB / 404.5 MB, free: 10.33 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005418/0.2564, allocations: 460 kB / 405 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009991/0.2574, allocations: 1.06 MB / 406.1 MB, free: 9.594 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008913/0.2583, allocations: 1.114 MB / 407.2 MB, free: 8.938 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001572/0.2584, allocations: 76.97 kB / 407.2 MB, free: 8.938 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002991/0.2614, allocations: 1.475 MB / 408.7 MB, free: 8.238 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000264/0.2617, allocations: 333.6 kB / 409 MB, free: 7.91 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009533/0.2627, allocations: 1.374 MB / 410.4 MB, free: 6.527 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003166/0.2658, allocations: 3.743 MB / 414.2 MB, free: 2.77 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2659, allocations: 3.984 kB / 414.2 MB, free: 2.766 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2659, allocations: 0 / 414.2 MB, free: 2.766 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.879e-05/0.2659, allocations: 0 / 414.2 MB, free: 2.766 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.003949/0.2698, allocations: 3.678 MB / 417.8 MB, free: 15.01 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.033e-05/0.2699, allocations: 8.031 kB / 417.9 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001007/0.27, allocations: 98.5 kB / 418 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003283/0.2703, allocations: 395.1 kB / 418.3 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002622/0.2729, allocations: 2.441 MB / 420.8 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.686e-05/0.273, allocations: 37 kB / 420.8 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.736e-05/0.2731, allocations: 51.91 kB / 420.9 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001109/0.2742, allocations: 0.7304 MB / 421.6 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.2742, allocations: 4 kB / 421.6 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.184e-05/0.2743, allocations: 23.98 kB / 421.6 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.786e-05/0.2743, allocations: 19.98 kB / 421.6 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00135/0.2757, allocations: 0.8202 MB / 422.5 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003955/0.2796, allocations: 3.059 MB / 425.5 MB, free: 7.145 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001052/0.2807, allocations: 0.5712 MB / 426.1 MB, free: 6.559 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008602/0.2816, allocations: 0.6438 MB / 426.7 MB, free: 5.91 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02397/0.3056, allocations: 30.76 MB / 457.5 MB, free: 2.91 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006312/0.3062, allocations: 369.6 kB / 457.9 MB, free: 2.535 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 3.166e-06/0.3062, allocations: 0 / 457.9 MB, free: 2.535 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.001832/0.3081, allocations: 1.089 MB / 458.9 MB, free: 1.438 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.739e-05/0.3081, allocations: 63.41 kB / 459 MB, free: 1.363 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002671/0.3108, allocations: 2.935 MB / 461.9 MB, free: 14.41 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.082e-05/0.3108, allocations: 37.7 kB / 462 MB, free: 14.37 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001023/0.3119, allocations: 1.485 MB / 463.5 MB, free: 12.88 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001131/0.312, allocations: 165.7 kB / 463.6 MB, free: 12.71 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002345/0.3122, allocations: 226.1 kB / 463.8 MB, free: 12.49 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.3123, allocations: 337.9 kB / 464.2 MB, free: 12.15 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000511/0.3128, allocations: 245.9 kB / 464.4 MB, free: 11.91 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006869/0.3135, allocations: 0.5988 MB / 465 MB, free: 11.14 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001225/0.3148, allocations: 0.8973 MB / 465.9 MB, free: 10.07 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.3148, allocations: 4 kB / 465.9 MB, free: 10.06 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001697/0.3165, allocations: 1.226 MB / 467.1 MB, free: 8.828 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.3165, allocations: 19.27 kB / 467.2 MB, free: 8.812 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.095e-05/0.3166, allocations: 80 kB / 467.2 MB, free: 8.734 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.064e-05/0.3166, allocations: 20.03 kB / 467.3 MB, free: 8.715 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006069/0.3173, allocations: 201.9 kB / 467.5 MB, free: 8.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.054e-05/0.3173, allocations: 27.92 kB / 467.5 MB, free: 8.492 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006941/0.318, allocations: 107 kB / 467.6 MB, free: 8.387 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.519e-05/0.3181, allocations: 64 kB / 467.6 MB, free: 8.324 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0005112/0.3186, allocations: 449.6 kB / 468.1 MB, free: 7.879 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002825/0.3189, allocations: 379.4 kB / 468.5 MB, free: 7.504 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00245/0.3213, allocations: 1.2 MB / 469.7 MB, free: 6.293 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.3214, allocations: 8 kB / 469.7 MB, free: 6.285 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.3214, allocations: 3.984 kB / 469.7 MB, free: 6.281 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.3214, allocations: 0 / 469.7 MB, free: 6.281 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002594/0.324, allocations: 2.085 MB / 471.8 MB, free: 4.129 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.031e-05/0.3241, allocations: 68 kB / 471.8 MB, free: 4.062 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004265/0.3245, allocations: 103.8 kB / 471.9 MB, free: 3.961 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.3245, allocations: 0 / 471.9 MB, free: 3.961 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.638e-05/0.3246, allocations: 28.06 kB / 471.9 MB, free: 3.934 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.3246, allocations: 8 kB / 472 MB, free: 3.926 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3246, allocations: 0 / 472 MB, free: 3.926 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001888/0.3265, allocations: 1.297 MB / 473.3 MB, free: 2.598 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005101/0.327, allocations: 480.2 kB / 473.7 MB, free: 2.105 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000251/0.3272, allocations: 17.73 kB / 473.7 MB, free: 2.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005667/0.3278, allocations: 28.03 kB / 473.8 MB, free: 2.062 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001269/0.3279, allocations: 71.81 kB / 473.8 MB, free: 1.992 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.737e-05/0.328, allocations: 36 kB / 473.9 MB, free: 1.957 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00184/0.3299, allocations: 1.907 MB / 475.8 MB, free: 52 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3299, allocations: 3.938 kB / 475.8 MB, free: 48 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009729/0.3308, allocations: 0.5816 MB / 476.4 MB, free: 15.46 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * 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.002884/0.3337, allocations: 2.518 MB / 478.9 MB, free: 12.91 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00138/0.3351, allocations: 0.8294 MB / 479.7 MB, free: 12.06 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.3351, allocations: 0 / 479.7 MB, free: 12.06 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006554/0.3358, allocations: 447 kB / 480.1 MB, free: 11.59 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002102/0.3379, allocations: 0.6167 MB / 480.8 MB, free: 10.97 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01935/0.3573, allocations: 21 MB / 0.49 GB, free: 3.809 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009117/0.3582, allocations: 1.664 MB / 0.4916 GB, free: 2.117 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001026/0.3592, allocations: 361.1 kB / 0.492 GB, free: 1.758 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001002/0.3602, allocations: 1.214 MB / 0.4932 GB, free: 0.543 MB / 414.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3602, allocations: 0 / 0.4932 GB, free: 0.543 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.267/2.627, allocations: 60.2 MB / 0.5519 GB, free: 141.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.932/12.56, allocations: 2.812 kB / 0.552 GB, free: 141.3 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches