Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001082/0.001082, allocations: 113.6 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001187/0.001187, allocations: 203.9 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2068/0.2068, allocations: 46.11 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 75.88 kB / 480.8 MB, free: 4.562 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2858/0.2872, allocations: 62.43 MB / 0.5305 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal): time 0.00838/0.2956, allocations: 7.733 MB / 0.5381 GB, free: 7.238 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004443/0.3001, allocations: 2.419 MB / 0.5404 GB, free: 5.262 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000648/0.3008, allocations: 25.72 kB / 0.5405 GB, free: 5.262 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003831/0.3046, allocations: 1.807 MB / 0.5422 GB, free: 3.902 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002112/0.3068, allocations: 0.716 MB / 0.5429 GB, free: 3.336 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002214/0.309, allocations: 1.085 MB / 0.544 GB, free: 2.531 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001659/0.3106, allocations: 1.408 MB / 0.5454 GB, free: 1.691 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001407/0.3121, allocations: 1.004 MB / 0.5463 GB, free: 1.074 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007757/0.3129, allocations: 0.6093 MB / 0.5469 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008572/0.3137, allocations: 0.7255 MB / 0.5476 GB, free: 188 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002122/0.3139, allocations: 112 kB / 0.5477 GB, free: 76 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000883/0.3148, allocations: 343.8 kB / 0.5481 GB, free: 15.74 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000212/0.3151, allocations: 294.9 kB / 0.5484 GB, free: 15.45 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005383/0.3156, allocations: 0.6531 MB / 0.549 GB, free: 14.79 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001922/0.3175, allocations: 1.771 MB / 0.5507 GB, free: 13.02 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.3176, allocations: 0 / 0.5507 GB, free: 13.02 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3176, allocations: 0 / 0.5507 GB, free: 13.02 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.873e-05/0.3176, allocations: 0 / 0.5507 GB, free: 13.02 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 339 * Number of variables: 339 Notification: Performance of Generate backend data structure: time 0.007514/0.3251, allocations: 2.417 MB / 0.5531 GB, free: 10.54 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/0.3252, allocations: 8.031 kB / 0.5531 GB, free: 10.54 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000208/0.3254, allocations: 194.7 kB / 0.5533 GB, free: 10.34 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01045/0.3358, allocations: 1.397 MB / 0.5546 GB, free: 8.938 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001269/0.3371, allocations: 0.6171 MB / 0.5552 GB, free: 8.281 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.87e-05/0.3373, allocations: 99.02 kB / 0.5553 GB, free: 8.184 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002204/0.3375, allocations: 136.1 kB / 0.5555 GB, free: 8.051 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002645/0.3401, allocations: 1.479 MB / 0.5569 GB, free: 6.523 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.064e-05/0.3402, allocations: 11.89 kB / 0.5569 GB, free: 6.512 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001299/0.3403, allocations: 59.98 kB / 0.557 GB, free: 6.453 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.213e-05/0.3404, allocations: 36 kB / 0.557 GB, free: 6.418 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00253/0.3429, allocations: 1.505 MB / 0.5585 GB, free: 4.906 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007555/0.3505, allocations: 5.604 MB / 0.564 GB, free: 14.97 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002403/0.3529, allocations: 2.175 MB / 0.5661 GB, free: 12.56 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009867/0.3539, allocations: 0.6506 MB / 0.5667 GB, free: 11.91 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000176/0.3541, allocations: 191.2 kB / 0.5669 GB, free: 11.68 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.151e-05/0.3541, allocations: 47.5 kB / 0.5669 GB, free: 11.63 MB / 430.1 MB Notification: Performance of pre-optimization done (n=127): time 3.045e-06/0.3541, allocations: 0 / 0.5669 GB, free: 11.63 MB / 430.1 MB Notification: Performance of matching and sorting (n=127): time 0.008892/0.363, allocations: 3.094 MB / 0.57 GB, free: 8.504 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.423e-05/0.3631, allocations: 94.14 kB / 0.5701 GB, free: 8.395 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004936/0.3636, allocations: 473.8 kB / 0.5705 GB, free: 7.922 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.354e-05/0.3637, allocations: 45.7 kB / 0.5705 GB, free: 7.871 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002568/0.3639, allocations: 476.9 kB / 0.571 GB, free: 7.398 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003023/0.3643, allocations: 440.2 kB / 0.5714 GB, free: 6.965 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003328/0.3646, allocations: 218.8 kB / 0.5716 GB, free: 6.746 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.3647, allocations: 374.8 kB / 0.572 GB, free: 6.371 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008298/0.3656, allocations: 462.4 kB / 0.5724 GB, free: 5.918 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009925/0.3666, allocations: 0.6918 MB / 0.5731 GB, free: 5.137 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001828/0.3684, allocations: 1.198 MB / 0.5743 GB, free: 3.84 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.374e-06/0.3684, allocations: 12 kB / 0.5743 GB, free: 3.828 MB / 430.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.002848/0.3713, allocations: 1.598 MB / 0.5758 GB, free: 2.223 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/0.3713, allocations: 15.92 kB / 0.5759 GB, free: 2.207 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.353e-05/0.3713, allocations: 4 kB / 0.5759 GB, free: 2.203 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001537/0.3729, allocations: 0.5242 MB / 0.5764 GB, free: 1.676 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007884/0.3737, allocations: 199.7 kB / 0.5766 GB, free: 1.48 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001992/0.3739, allocations: 57.12 kB / 0.5766 GB, free: 1.422 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007251/0.3746, allocations: 127.1 kB / 0.5767 GB, free: 1.297 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.431e-05/0.3747, allocations: 48 kB / 0.5768 GB, free: 1.25 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 4 (booleanStep4.y,booleanStep3.y,booleanStep2.y,booleanStep1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 111 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(20,28)} Notification: Performance of prepare postOptimizeDAE: time 0.0004509/0.3752, allocations: 277.1 kB / 0.5771 GB, free: 0.9727 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001681/0.3753, allocations: 83.48 kB / 0.5771 GB, free: 0.8906 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002694/0.378, allocations: 1.564 MB / 0.5787 GB, free: 15.31 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.777e-05/0.3781, allocations: 23.92 kB / 0.5787 GB, free: 15.29 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.3781, allocations: 4 kB / 0.5787 GB, free: 15.29 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.191e-05/0.3781, allocations: 3.984 kB / 0.5787 GB, free: 15.28 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004274/0.3824, allocations: 2.859 MB / 0.5815 GB, free: 12.36 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/0.3824, allocations: 0 / 0.5815 GB, free: 12.36 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006701/0.3831, allocations: 143.8 kB / 0.5816 GB, free: 12.22 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001431/0.3845, allocations: 0.5184 MB / 0.5821 GB, free: 11.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.171e-05/0.3846, allocations: 31.98 kB / 0.5822 GB, free: 11.67 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003158/0.3849, allocations: 64.73 kB / 0.5822 GB, free: 11.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.385, allocations: 8 kB / 0.5822 GB, free: 11.59 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003757/0.3887, allocations: 2.329 MB / 0.5845 GB, free: 9.242 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003939/0.3891, allocations: 292.2 kB / 0.5848 GB, free: 8.938 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001229/0.3893, allocations: 27.89 kB / 0.5848 GB, free: 8.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006116/0.3899, allocations: 44.05 kB / 0.5848 GB, free: 8.867 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001508/0.39, allocations: 77.2 kB / 0.5849 GB, free: 8.789 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.144e-05/0.3901, allocations: 35.98 kB / 0.585 GB, free: 8.754 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003359/0.3905, allocations: 310.9 kB / 0.5853 GB, free: 8.449 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3905, allocations: 0 / 0.5853 GB, free: 8.449 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0009023/0.3914, allocations: 343.3 kB / 0.5856 GB, free: 8.113 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (voltageSource.pin_p.reference.gamma) * Number of discrete variables: 4 (booleanStep1.y,booleanStep2.y,booleanStep3.y,booleanStep4.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(20,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004177/0.3956, allocations: 2.947 MB / 0.5885 GB, free: 5.137 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002845/0.3984, allocations: 1.367 MB / 0.5898 GB, free: 3.77 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.3984, allocations: 0 / 0.5898 GB, free: 3.77 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001737/0.4002, allocations: 0.7661 MB / 0.5905 GB, free: 3.004 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007672/0.401, allocations: 106.8 kB / 0.5906 GB, free: 2.902 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01195/0.4129, allocations: 8.427 MB / 0.5989 GB, free: 10.18 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005486/0.4135, allocations: 1.044 MB / 0.5999 GB, free: 9.109 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004548/0.414, allocations: 106.8 kB / 0.6 GB, free: 9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000483/0.4145, allocations: 391.3 kB / 0.6004 GB, free: 8.617 MB / 462.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4145, allocations: 0 / 0.6004 GB, free: 8.617 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04488/0.4594, allocations: 21.83 MB / 0.6217 GB, free: 2.992 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.38/12.84, allocations: 8.312 kB / 0.6217 GB, free: 2.988 MB / 478.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/QuasiStatic/SinglePhase/Ideal/Ideal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches