Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008772/0.0008772, allocations: 198.2 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.174/1.174, allocations: 226.5 MB / 243.4 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006887/0.0006886, allocations: 89.81 kB / 295.5 MB, free: 6.918 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2609/0.2609, allocations: 44.82 MB / 392.3 MB, free: 35.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002445/0.0002445, allocations: 11.98 kB / 465.4 MB, free: 12.59 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2555/0.2558, allocations: 62.96 MB / 0.516 GB, free: 37.15 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal): time 0.00489/0.2607, allocations: 6.704 MB / 0.5225 GB, free: 32.25 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003416/0.2642, allocations: 2.209 MB / 0.5247 GB, free: 30.65 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004882/0.2647, allocations: 28.5 kB / 0.5247 GB, free: 30.65 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005553/0.2652, allocations: 262.7 kB / 0.5249 GB, free: 30.53 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001186/0.2664, allocations: 0.6057 MB / 0.5255 GB, free: 30.13 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001474/0.2679, allocations: 0.8851 MB / 0.5264 GB, free: 29.58 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009222/0.2689, allocations: 1.283 MB / 0.5277 GB, free: 28.92 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002149/0.271, allocations: 1.618 MB / 0.5292 GB, free: 27.91 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000484/0.2715, allocations: 0.5047 MB / 0.5297 GB, free: 27.7 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000453/0.272, allocations: 0.622 MB / 0.5303 GB, free: 27.42 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001001/0.2721, allocations: 56.47 kB / 0.5304 GB, free: 27.42 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005422/0.2726, allocations: 272.5 kB / 0.5306 GB, free: 27.35 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001386/0.2728, allocations: 227.5 kB / 0.5309 GB, free: 27.21 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003693/0.2732, allocations: 0.5801 MB / 0.5314 GB, free: 26.85 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008869/0.274, allocations: 1.309 MB / 0.5327 GB, free: 26.48 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.2741, allocations: 0 / 0.5327 GB, free: 26.48 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2741, allocations: 0 / 0.5327 GB, free: 26.48 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.122e-05/0.2741, allocations: 0 / 0.5327 GB, free: 26.48 MB / 378.7 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.005855/0.2799, allocations: 2.147 MB / 0.5348 GB, free: 25.48 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.28, allocations: 7.719 kB / 0.5348 GB, free: 25.48 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002011/0.2802, allocations: 194.4 kB / 0.535 GB, free: 25.36 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008398/0.2886, allocations: 1.4 MB / 0.5364 GB, free: 25.13 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009213/0.2896, allocations: 0.6064 MB / 0.537 GB, free: 24.66 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.477e-05/0.2897, allocations: 102.5 kB / 0.5371 GB, free: 24.61 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001654/0.2898, allocations: 131.8 kB / 0.5372 GB, free: 24.56 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002248/0.2921, allocations: 1.48 MB / 0.5386 GB, free: 23.89 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.748e-05/0.2921, allocations: 7.359 kB / 0.5386 GB, free: 23.89 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001098/0.2922, allocations: 57.12 kB / 0.5387 GB, free: 23.85 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.465e-05/0.2923, allocations: 32.16 kB / 0.5387 GB, free: 23.85 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002356/0.2946, allocations: 1.519 MB / 0.5402 GB, free: 23.32 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007194/0.3018, allocations: 5.664 MB / 0.5457 GB, free: 19.51 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002092/0.304, allocations: 2.179 MB / 0.5479 GB, free: 17.73 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009056/0.3049, allocations: 0.6557 MB / 0.5485 GB, free: 17.43 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001649/0.3051, allocations: 184.2 kB / 0.5487 GB, free: 17.24 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.601e-05/0.3051, allocations: 45.81 kB / 0.5487 GB, free: 17.2 MB / 378.7 MB Notification: Performance of pre-optimization done (n=127): time 3.616e-06/0.3051, allocations: 3.938 kB / 0.5487 GB, free: 17.19 MB / 378.7 MB Notification: Performance of matching and sorting (n=127): time 0.00895/0.3141, allocations: 3.139 MB / 0.5518 GB, free: 16.19 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.597e-05/0.3142, allocations: 91.45 kB / 0.5519 GB, free: 16.09 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006194/0.3148, allocations: 462.4 kB / 0.5523 GB, free: 15.86 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.053e-05/0.3149, allocations: 51.11 kB / 0.5524 GB, free: 15.81 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003003/0.3152, allocations: 464.4 kB / 0.5528 GB, free: 15.45 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003364/0.3155, allocations: 427.6 kB / 0.5532 GB, free: 15.11 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.318e-05/0.3156, allocations: 21.25 kB / 0.5532 GB, free: 15.09 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.3158, allocations: 386 kB / 0.5536 GB, free: 14.74 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008646/0.3166, allocations: 461.3 kB / 0.554 GB, free: 14.55 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001026/0.3177, allocations: 0.7013 MB / 0.5547 GB, free: 14.02 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00207/0.3197, allocations: 1.201 MB / 0.5559 GB, free: 13.22 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.897e-06/0.3198, allocations: 2.25 kB / 0.5559 GB, free: 13.22 MB / 378.7 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.003145/0.3229, allocations: 1.581 MB / 0.5575 GB, free: 12.41 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.926e-05/0.323, allocations: 16.88 kB / 0.5575 GB, free: 12.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.639e-05/0.323, allocations: 7.375 kB / 0.5575 GB, free: 12.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001705/0.3247, allocations: 0.5238 MB / 0.558 GB, free: 12.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008735/0.3256, allocations: 201.6 kB / 0.5582 GB, free: 12.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007386/0.333, allocations: 4.7 MB / 0.5628 GB, free: 8.297 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009616/0.334, allocations: 134.8 kB / 0.5629 GB, free: 8.164 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.894e-05/0.3341, allocations: 48 kB / 0.5629 GB, free: 8.117 MB / 378.7 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 (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 initialization (112): * Single equations (assignments): 111 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {20 28} Notification: Performance of prepare postOptimizeDAE: time 0.000492/0.3346, allocations: 273.5 kB / 0.5632 GB, free: 7.84 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001528/0.3348, allocations: 79.06 kB / 0.5633 GB, free: 7.762 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002368/0.3371, allocations: 1.578 MB / 0.5648 GB, free: 6.168 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.21e-05/0.3372, allocations: 16 kB / 0.5648 GB, free: 6.152 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.896e-06/0.3372, allocations: 4 kB / 0.5648 GB, free: 6.148 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/0.3372, allocations: 11.97 kB / 0.5648 GB, free: 6.137 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003485/0.3407, allocations: 2.87 MB / 0.5677 GB, free: 3.199 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-06/0.3407, allocations: 0 / 0.5677 GB, free: 3.199 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005412/0.3412, allocations: 151.8 kB / 0.5678 GB, free: 3.051 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00118/0.3424, allocations: 0.5187 MB / 0.5683 GB, free: 2.527 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.405e-05/0.3425, allocations: 27.94 kB / 0.5683 GB, free: 2.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005989/0.3485, allocations: 4.696 MB / 0.5729 GB, free: 13.67 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.3485, allocations: 4 kB / 0.5729 GB, free: 13.66 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003623/0.3522, allocations: 2.359 MB / 0.5752 GB, free: 11.29 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004066/0.3526, allocations: 287.9 kB / 0.5755 GB, free: 10.98 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.855e-05/0.3527, allocations: 20 kB / 0.5755 GB, free: 10.96 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005777/0.3533, allocations: 51.97 kB / 0.5756 GB, free: 10.91 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002997/0.3536, allocations: 105.1 kB / 0.5757 GB, free: 10.81 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.376e-05/0.3537, allocations: 36 kB / 0.5757 GB, free: 10.78 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003135/0.354, allocations: 306.9 kB / 0.576 GB, free: 10.48 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.354, allocations: 3.938 kB / 0.576 GB, free: 10.47 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001138/0.3551, allocations: 415 kB / 0.5764 GB, free: 10.07 MB / 394.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {20 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.003894/0.359, allocations: 2.962 MB / 0.5793 GB, free: 7.078 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003115/0.3622, allocations: 1.829 MB / 0.5811 GB, free: 5.223 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.728e-06/0.3622, allocations: 8.062 kB / 0.5811 GB, free: 5.215 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002007/0.3642, allocations: 1.235 MB / 0.5823 GB, free: 3.957 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007538/0.365, allocations: 93.94 kB / 0.5824 GB, free: 3.867 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008741/0.3737, allocations: 6.021 MB / 0.5883 GB, free: 13.68 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006376/0.3744, allocations: 1.076 MB / 0.5893 GB, free: 12.58 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005521/0.3749, allocations: 399.3 kB / 0.5897 GB, free: 12.19 MB / 410.7 MB Notification: Performance of SimCode: time 7.72e-07/0.375, allocations: 0 / 0.5897 GB, free: 12.19 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.805/4.18, allocations: 20.39 MB / 0.6096 GB, free: 7.738 MB / 426.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/QuasiStatic/SinglePhase/Ideal/Ideal.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches