Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.Polyphase.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: translateModel(ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|I.1..re|I.1..im|I.2..re|I.2..im|I.3..re|I.3..im",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal") translateModel(ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|I.1..re|I.1..im|I.2..re|I.2..im|I.3..re|I.3..im",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001106/0.001106, allocations: 202.2 kB / 15.8 MB, free: 6.332 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.271/1.271, allocations: 226.5 MB / 243.1 MB, free: 14.29 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007974/0.0007978, allocations: 97.8 kB / 295.1 MB, free: 10.06 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1787/0.1787, allocations: 44.82 MB / 392 MB, free: 9.332 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002303/0.0002303, allocations: 11.98 kB / 464.7 MB, free: 49.77 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08706/0.0873, allocations: 62.96 MB / 0.5153 GB, free: 2.77 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal): time 0.1861/0.2734, allocations: 19.64 MB / 0.5345 GB, free: 15.74 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.01291/0.2864, allocations: 5.082 MB / 0.5395 GB, free: 12 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004055/0.2905, allocations: 172 kB / 0.5396 GB, free: 11.97 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003223/0.2937, allocations: 1.011 MB / 0.5406 GB, free: 11.46 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006886/0.3006, allocations: 1.844 MB / 0.5424 GB, free: 10.4 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004305/0.3049, allocations: 1.467 MB / 0.5439 GB, free: 9.512 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.01715/0.3221, allocations: 13.56 MB / 0.5571 GB, free: 2.285 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04665/0.3688, allocations: 26.54 MB / 0.583 GB, free: 8.336 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01008/0.3789, allocations: 5.513 MB / 0.5884 GB, free: 2.805 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01067/0.3896, allocations: 6.198 MB / 0.5944 GB, free: 12.58 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004083/0.3938, allocations: 0.832 MB / 0.5953 GB, free: 11.75 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007045/0.4008, allocations: 1.07 MB / 0.5963 GB, free: 10.68 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004386/0.4052, allocations: 2.651 MB / 0.5989 GB, free: 8.02 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005698/0.411, allocations: 2.788 MB / 0.6016 GB, free: 5.219 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02577/0.4368, allocations: 24.1 MB / 0.6251 GB, free: 13.06 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.945e-06/0.4368, allocations: 4 kB / 0.6252 GB, free: 13.05 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.276e-06/0.4368, allocations: 0 / 0.6252 GB, free: 13.05 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0008795/0.4377, allocations: 4 kB / 0.6252 GB, free: 13.05 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3858 * Number of variables: 3858 Notification: Performance of Generate backend data structure: time 0.04448/0.4822, allocations: 15.65 MB / 0.6404 GB, free: 13.3 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.4823, allocations: 11.97 kB / 0.6404 GB, free: 13.29 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05739/0.5397, allocations: 11.78 MB / 0.652 GB, free: 1.473 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01743/0.5572, allocations: 8.442 MB / 0.6602 GB, free: 8.945 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001301/0.5585, allocations: 1.063 MB / 0.6612 GB, free: 7.879 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005106/0.5636, allocations: 1.371 MB / 0.6626 GB, free: 6.508 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05719/0.6208, allocations: 23.49 MB / 0.6855 GB, free: 14.91 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000553/0.6214, allocations: 19.78 kB / 0.6855 GB, free: 14.89 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004303/0.6257, allocations: 0.5781 MB / 0.6861 GB, free: 14.31 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008122/0.6266, allocations: 0.6978 MB / 0.6868 GB, free: 13.61 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04389/0.6705, allocations: 21.63 MB / 0.7079 GB, free: 7.961 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4746/1.145, allocations: 72.88 MB / 0.7791 GB, free: 98.27 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01681/1.162, allocations: 28.64 MB / 0.807 GB, free: 71.93 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006506/1.168, allocations: 4.968 MB / 0.8119 GB, free: 67.93 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02126/1.19, allocations: 16.51 MB / 0.828 GB, free: 51.19 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.451e-05/1.19, allocations: 84.8 kB / 0.8281 GB, free: 51.1 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=465): time 6.002e-06/1.19, allocations: 0 / 0.8281 GB, free: 51.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=465): time 0.02949/1.219, allocations: 15.61 MB / 0.8433 GB, free: 35.4 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.412e-05/1.219, allocations: 124.7 kB / 0.8435 GB, free: 35.26 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006024/1.225, allocations: 5.066 MB / 0.8484 GB, free: 30.19 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007295/1.226, allocations: 97.7 kB / 0.8485 GB, free: 30.09 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002594/1.229, allocations: 5.887 MB / 0.8542 GB, free: 24.17 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001509/1.23, allocations: 1.597 MB / 0.8558 GB, free: 22.59 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004239/1.231, allocations: 147.9 kB / 0.8559 GB, free: 22.44 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003121/1.231, allocations: 0.6122 MB / 0.8565 GB, free: 21.82 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005005/1.236, allocations: 4.144 MB / 0.8606 GB, free: 17.68 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006216/1.242, allocations: 7.266 MB / 0.8677 GB, free: 8.965 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006369/1.249, allocations: 5.603 MB / 0.8732 GB, free: 3.355 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.432e-05/1.249, allocations: 32 kB / 0.8732 GB, free: 3.324 MB / 0.5105 GB Notification: Performance of matching and sorting (n=961) (initialization): time 0.02009/1.269, allocations: 13.1 MB / 0.886 GB, free: 6.199 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 8.191e-05/1.269, allocations: 55.95 kB / 0.886 GB, free: 6.145 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001449/1.269, allocations: 104 kB / 0.8861 GB, free: 6.043 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006052/1.275, allocations: 3.099 MB / 0.8892 GB, free: 2.934 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005676/1.281, allocations: 1.591 MB / 0.8907 GB, free: 1.34 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0291/1.31, allocations: 21.88 MB / 0.9121 GB, free: 11.05 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006362/1.316, allocations: 1.077 MB / 0.9131 GB, free: 9.965 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001338/1.318, allocations: 376 kB / 0.9135 GB, free: 9.598 MB / 0.5574 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 473 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y,booleanStep4[1].y,booleanStep4[2].y,booleanStep4[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (814): * Single equations (assignments): 811 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {20 30,20 28,20 28} Notification: Performance of prepare postOptimizeDAE: time 0.009688/1.327, allocations: 5.39 MB / 0.9188 GB, free: 4.191 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001076/1.329, allocations: 0.5016 MB / 0.9192 GB, free: 3.684 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01516/1.344, allocations: 9.674 MB / 0.9287 GB, free: 9.977 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.345e-05/1.344, allocations: 55.94 kB / 0.9287 GB, free: 9.922 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/1.344, allocations: 0 / 0.9287 GB, free: 9.922 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.58e-05/1.344, allocations: 19.92 kB / 0.9288 GB, free: 9.902 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2481/1.592, allocations: 20.8 MB / 0.9491 GB, free: 190.1 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.621e-05/1.592, allocations: 0 / 0.9491 GB, free: 190.1 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003083/1.595, allocations: 0.7376 MB / 0.9498 GB, free: 190.1 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006494/1.602, allocations: 2.962 MB / 0.9527 GB, free: 189.3 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007523/1.602, allocations: 96.84 kB / 0.9528 GB, free: 189.2 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02622/1.629, allocations: 21.67 MB / 0.9739 GB, free: 178.3 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/1.629, allocations: 0 / 0.9739 GB, free: 178.3 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0172/1.646, allocations: 14.24 MB / 0.9879 GB, free: 172.9 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002589/1.649, allocations: 1.382 MB / 0.9892 GB, free: 172.2 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006168/1.649, allocations: 85.58 kB / 0.9893 GB, free: 172.1 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002451/1.652, allocations: 391.6 kB / 0.9897 GB, free: 172 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008939/1.653, allocations: 383.7 kB / 0.99 GB, free: 171.8 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002796/1.653, allocations: 131.7 kB / 0.9901 GB, free: 171.7 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.004338/1.657, allocations: 3.387 MB / 0.9935 GB, free: 168.9 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.7e-07/1.657, allocations: 0 / 0.9935 GB, free: 168.9 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.008157/1.665, allocations: 3.424 MB / 0.9968 GB, free: 165.5 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (voltageSource.plug_p.reference.gamma) * Number of discrete variables: 12 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y,booleanStep4[1].y,booleanStep4[2].y,booleanStep4[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (357): * Single equations (assignments): 354 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {20 30,20 28,20 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007571/1.666, allocations: 255.8 kB / 0.997 GB, free: 165.2 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01563/1.682, allocations: 11.4 MB / 1.008 GB, free: 155.3 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/1.682, allocations: 1.812 kB / 1.008 GB, free: 155.3 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.007458/1.689, allocations: 5.969 MB / 1.014 GB, free: 149.2 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005031/1.694, allocations: 1.22 MB / 1.015 GB, free: 148 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03495/1.729, allocations: 28.52 MB / 1.043 GB, free: 119.5 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006574/1.736, allocations: 8.819 MB / 1.052 GB, free: 110.7 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001674/1.738, allocations: 431.3 kB / 1.052 GB, free: 110.2 MB / 0.573 GB Notification: Performance of SimCode: time 6.51e-07/1.738, allocations: 4 kB / 1.052 GB, free: 110.2 MB / 0.573 GB Notification: Performance of Templates: time 0.7608/2.498, allocations: 385.9 MB / 1.429 GB, free: 161.5 MB / 0.5887 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/QuasiStatic/Polyphase/Ideal/Ideal.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches