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.001007/0.001007, allocations: 97.52 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001162/0.001162, allocations: 205.7 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.177/1.177, allocations: 227.7 MB / 246.8 MB, free: 11.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001792/0.0001793, allocations: 4 kB / 307.8 MB, free: 0.7227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07096/0.07115, allocations: 51.51 MB / 359.3 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.1371/0.2082, allocations: 14.03 MB / 373.4 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01682/0.2251, allocations: 20.62 MB / 394 MB, free: 1.191 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009217/0.226, allocations: 30.06 kB / 394 MB, free: 1.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002225/0.2283, allocations: 1.103 MB / 395.1 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004936/0.2332, allocations: 1.922 MB / 397.1 MB, free: 15.53 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002922/0.2361, allocations: 1.206 MB / 398.3 MB, free: 14.91 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007251/0.2434, allocations: 6.426 MB / 404.7 MB, free: 12.14 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005418/0.244, allocations: 436.8 kB / 405.1 MB, free: 11.91 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00101/0.245, allocations: 1.039 MB / 406.2 MB, free: 11.43 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008226/0.2458, allocations: 1.077 MB / 407.2 MB, free: 10.8 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001115/0.2459, allocations: 42.28 kB / 407.3 MB, free: 10.8 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002785/0.2487, allocations: 1.453 MB / 408.7 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002095/0.2489, allocations: 293.2 kB / 409 MB, free: 9.957 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009072/0.2499, allocations: 1.363 MB / 410.4 MB, free: 8.586 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002865/0.2527, allocations: 3.618 MB / 414 MB, free: 4.953 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.2527, allocations: 0 / 414 MB, free: 4.953 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2527, allocations: 0 / 414 MB, free: 4.953 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.84e-05/0.2528, allocations: 4 kB / 414 MB, free: 4.949 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.003535/0.2563, allocations: 3.213 MB / 417.2 MB, free: 1.66 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.35e-05/0.2563, allocations: 8.031 kB / 417.2 MB, free: 1.652 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001071/0.2565, allocations: 102.5 kB / 417.3 MB, free: 1.543 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002982/0.2568, allocations: 399.1 kB / 417.7 MB, free: 1.148 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002652/0.2594, allocations: 2.429 MB / 420.1 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.806e-05/0.2595, allocations: 37 kB / 420.2 MB, free: 14.61 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001154/0.2596, allocations: 63.89 kB / 420.2 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001163/0.2608, allocations: 0.746 MB / 421 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.2608, allocations: 0 / 421 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.341e-05/0.2608, allocations: 27.92 kB / 421 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.75e-05/0.2609, allocations: 16 kB / 421 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001399/0.2623, allocations: 0.867 MB / 421.9 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004088/0.2664, allocations: 3.079 MB / 425 MB, free: 9.715 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001152/0.2675, allocations: 0.6181 MB / 425.6 MB, free: 9.09 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009121/0.2685, allocations: 0.6631 MB / 426.3 MB, free: 8.422 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02539/0.2939, allocations: 30.78 MB / 457 MB, free: 5.387 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006893/0.2946, allocations: 381.6 kB / 457.4 MB, free: 4.996 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 3.467e-06/0.2946, allocations: 0 / 457.4 MB, free: 4.996 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002135/0.2967, allocations: 1.163 MB / 458.6 MB, free: 3.828 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.934e-05/0.2968, allocations: 59.41 kB / 458.6 MB, free: 3.758 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003139/0.2999, allocations: 2.939 MB / 461.6 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.751e-05/0.3, allocations: 33.7 kB / 461.6 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001054/0.301, allocations: 1.482 MB / 463.1 MB, free: 15.28 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001285/0.3012, allocations: 165.7 kB / 463.2 MB, free: 15.11 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.194e-05/0.3013, allocations: 73.67 kB / 463.3 MB, free: 15.04 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.981e-05/0.3014, allocations: 341.9 kB / 463.6 MB, free: 14.7 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005506/0.3019, allocations: 261.9 kB / 463.9 MB, free: 14.44 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007255/0.3027, allocations: 0.6293 MB / 464.5 MB, free: 13.64 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001353/0.304, allocations: 0.9403 MB / 465.5 MB, free: 12.53 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.221e-06/0.3041, allocations: 4 kB / 465.5 MB, free: 12.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001887/0.3059, allocations: 1.268 MB / 466.7 MB, free: 11.24 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/0.306, allocations: 8 kB / 466.8 MB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.375e-05/0.3061, allocations: 86.92 kB / 466.8 MB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.433e-05/0.3061, allocations: 20 kB / 466.9 MB, free: 11.13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006468/0.3068, allocations: 212.3 kB / 467.1 MB, free: 10.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.937e-05/0.3068, allocations: 23.88 kB / 467.1 MB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008506/0.3076, allocations: 123.1 kB / 467.2 MB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.058e-05/0.3077, allocations: 68 kB / 467.3 MB, free: 10.71 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.0005528/0.3083, allocations: 437.9 kB / 467.7 MB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003027/0.3086, allocations: 379.4 kB / 468.1 MB, free: 9.906 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002616/0.3112, allocations: 1.244 MB / 469.3 MB, free: 8.652 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.917e-06/0.3112, allocations: 7.984 kB / 469.3 MB, free: 8.645 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.3113, allocations: 4 kB / 469.3 MB, free: 8.641 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.3113, allocations: 3.984 kB / 469.3 MB, free: 8.637 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002739/0.314, allocations: 2.128 MB / 471.5 MB, free: 6.438 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.5e-05/0.3141, allocations: 68 kB / 471.5 MB, free: 6.371 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004373/0.3145, allocations: 103.9 kB / 471.6 MB, free: 6.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.204e-06/0.3146, allocations: 8.047 kB / 471.6 MB, free: 6.262 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.755e-05/0.3146, allocations: 36 kB / 471.7 MB, free: 6.227 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.3146, allocations: 0 / 471.7 MB, free: 6.227 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.3146, allocations: 0 / 471.7 MB, free: 6.227 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002025/0.3167, allocations: 1.363 MB / 473 MB, free: 4.836 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005255/0.3172, allocations: 472.3 kB / 473.5 MB, free: 4.352 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000249/0.3175, allocations: 12 kB / 473.5 MB, free: 4.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006318/0.3181, allocations: 44.02 kB / 473.6 MB, free: 4.297 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001341/0.3182, allocations: 63.88 kB / 473.6 MB, free: 4.234 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.563e-05/0.3183, allocations: 36.75 kB / 473.7 MB, free: 4.199 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002067/0.3204, allocations: 1.907 MB / 475.6 MB, free: 2.293 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3204, allocations: 3.938 kB / 475.6 MB, free: 2.289 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001041/0.3214, allocations: 0.5816 MB / 476.1 MB, free: 1.707 MB / 382.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.003102/0.3245, allocations: 2.595 MB / 478.7 MB, free: 15.07 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001371/0.3259, allocations: 0.8491 MB / 479.6 MB, free: 14.2 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3259, allocations: 0 / 479.6 MB, free: 14.2 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006838/0.3266, allocations: 467.2 kB / 480 MB, free: 13.72 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002476/0.3291, allocations: 0.5826 MB / 480.6 MB, free: 13.13 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03275/0.3619, allocations: 21.9 MB / 0.4907 GB, free: 5.074 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009477/0.3628, allocations: 1.665 MB / 0.4924 GB, free: 3.383 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001108/0.3639, allocations: 365 kB / 0.4927 GB, free: 3.02 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001012/0.365, allocations: 1.214 MB / 0.4939 GB, free: 1.805 MB / 414.1 MB Notification: Performance of SimCode: time 8.72e-07/0.365, allocations: 0 / 0.4939 GB, free: 1.805 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.065/3.43, allocations: 58.47 MB / 0.551 GB, free: 141.1 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002293/3.431, allocations: 213.1 kB / 0.5512 GB, free: 140.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.811/7.242, allocations: 0 / 0.5512 GB, free: 140.8 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