Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.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.Analog.Ideal.IdealTwoWaySwitches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|twoWay.LossPower|twoWay.p.i|twoWay.n1.v|twoWay.n1.i|twoWay.n2.v|twoWay.n2.i|controlledTwoWay.LossPower|controlledTwoWay.p.i|controlledTwoWay.n1.v|controlledTwoWay.n1.i|controlledTwoWay.n2.v|controlledTwoWay.n2.i",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") translateModel(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|twoWay.LossPower|twoWay.p.i|twoWay.n1.v|twoWay.n1.i|twoWay.n2.v|twoWay.n2.i|controlledTwoWay.LossPower|controlledTwoWay.p.i|controlledTwoWay.n1.v|controlledTwoWay.n1.i|controlledTwoWay.n2.v|controlledTwoWay.n2.i",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001147/0.001147, allocations: 200 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.235/1.235, allocations: 226.5 MB / 243.4 MB, free: 8.195 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007691/0.000769, allocations: 95 kB / 295.5 MB, free: 6.906 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.313/0.313, allocations: 44.82 MB / 392.3 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003343/0.0003349, allocations: 8 kB / 465.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2823/0.2827, allocations: 62.96 MB / 0.5159 GB, free: 37.12 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.00214/0.2849, allocations: 2.485 MB / 0.5183 GB, free: 35.32 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008404/0.2857, allocations: 0.6485 MB / 0.5189 GB, free: 34.84 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001213/0.2859, allocations: 9.531 kB / 0.5189 GB, free: 34.84 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001194/0.286, allocations: 41.95 kB / 0.519 GB, free: 34.82 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001216/0.2861, allocations: 81.23 kB / 0.5191 GB, free: 34.76 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001379/0.2863, allocations: 65.52 kB / 0.5191 GB, free: 34.73 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003042/0.2866, allocations: 370.9 kB / 0.5195 GB, free: 34.54 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001736/0.2868, allocations: 112.6 kB / 0.5196 GB, free: 34.48 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.722e-05/0.2869, allocations: 125.5 kB / 0.5197 GB, free: 34.44 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001321/0.287, allocations: 138.2 kB / 0.5198 GB, free: 34.38 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.431e-05/0.287, allocations: 21.66 kB / 0.5199 GB, free: 34.37 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.174e-05/0.2871, allocations: 17.94 kB / 0.5199 GB, free: 34.37 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.236e-05/0.2871, allocations: 58.53 kB / 0.5199 GB, free: 34.34 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001139/0.2873, allocations: 169 kB / 0.5201 GB, free: 34.23 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001981/0.2875, allocations: 279.9 kB / 0.5204 GB, free: 34.17 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.2875, allocations: 0 / 0.5204 GB, free: 34.17 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2875, allocations: 0 / 0.5204 GB, free: 34.17 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.55e-06/0.2875, allocations: 4 kB / 0.5204 GB, free: 34.16 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: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.0007634/0.2883, allocations: 0.5881 MB / 0.5209 GB, free: 33.7 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.2883, allocations: 8.938 kB / 0.5209 GB, free: 33.7 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.37e-05/0.2884, allocations: 39.09 kB / 0.521 GB, free: 33.68 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002378/0.2886, allocations: 269.3 kB / 0.5212 GB, free: 33.43 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.241e-05/0.2887, allocations: 24.41 kB / 0.5213 GB, free: 33.41 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.126e-05/0.2887, allocations: 36.72 kB / 0.5213 GB, free: 33.39 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005082/0.2892, allocations: 329.3 kB / 0.5216 GB, free: 33.24 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.2892, allocations: 0 / 0.5216 GB, free: 33.24 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.894e-05/0.2893, allocations: 17.31 kB / 0.5216 GB, free: 33.23 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.765e-06/0.2893, allocations: 5.719 kB / 0.5216 GB, free: 33.23 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004405/0.2897, allocations: 254.7 kB / 0.5219 GB, free: 33.14 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001645/0.2914, allocations: 1.283 MB / 0.5231 GB, free: 32.29 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005991/0.292, allocations: 490.3 kB / 0.5236 GB, free: 31.97 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002588/0.2923, allocations: 166.3 kB / 0.5238 GB, free: 31.91 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.239e-05/0.2923, allocations: 2.797 kB / 0.5238 GB, free: 31.91 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.902e-05/0.2923, allocations: 37.61 kB / 0.5238 GB, free: 31.87 MB / 378.7 MB Notification: Performance of pre-optimization done (n=27): time 1.973e-06/0.2923, allocations: 4 kB / 0.5238 GB, free: 31.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=27): time 0.002601/0.2949, allocations: 1.177 MB / 0.5249 GB, free: 31.43 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.725e-05/0.295, allocations: 54.53 kB / 0.525 GB, free: 31.37 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001934/0.2952, allocations: 242.1 kB / 0.5252 GB, free: 31.23 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.2952, allocations: 29.7 kB / 0.5253 GB, free: 31.19 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.275e-05/0.2953, allocations: 169.2 kB / 0.5254 GB, free: 31.05 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.011e-05/0.2953, allocations: 82.38 kB / 0.5255 GB, free: 30.98 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.371e-05/0.2953, allocations: 7 kB / 0.5255 GB, free: 30.98 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.095e-05/0.2954, allocations: 335.8 kB / 0.5258 GB, free: 30.65 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001991/0.2956, allocations: 110.3 kB / 0.5259 GB, free: 30.62 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002076/0.2958, allocations: 159.5 kB / 0.5261 GB, free: 30.54 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000397/0.2962, allocations: 266.4 kB / 0.5263 GB, free: 30.41 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.2962, allocations: 0 / 0.5263 GB, free: 30.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009787/0.2972, allocations: 0.5312 MB / 0.5269 GB, free: 30.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/0.2972, allocations: 12.41 kB / 0.5269 GB, free: 30.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.2972, allocations: 3.469 kB / 0.5269 GB, free: 30.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000882/0.2981, allocations: 276.5 kB / 0.5271 GB, free: 30.15 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001386/0.2983, allocations: 39.69 kB / 0.5272 GB, free: 30.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002921/0.3012, allocations: 3.516 MB / 0.5306 GB, free: 27.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000198/0.3014, allocations: 41.88 kB / 0.5306 GB, free: 27.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.837e-05/0.3015, allocations: 12.5 kB / 0.5307 GB, free: 27.15 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 19 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 6,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001262/0.3016, allocations: 137.4 kB / 0.5308 GB, free: 27.02 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.532e-05/0.3016, allocations: 26.16 kB / 0.5308 GB, free: 27.01 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.421e-05/0.3017, allocations: 36.11 kB / 0.5308 GB, free: 26.98 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.3017, allocations: 2.75 kB / 0.5308 GB, free: 26.98 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.088e-05/0.3017, allocations: 2.969 kB / 0.5309 GB, free: 26.98 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.3017, allocations: 7.047 kB / 0.5309 GB, free: 26.98 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001362/0.3031, allocations: 0.9428 MB / 0.5318 GB, free: 26.44 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.3031, allocations: 0 / 0.5318 GB, free: 26.44 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.465e-05/0.3032, allocations: 18.97 kB / 0.5318 GB, free: 26.44 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000781/0.304, allocations: 285.3 kB / 0.5321 GB, free: 26.38 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.573e-05/0.304, allocations: 4 kB / 0.5321 GB, free: 26.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002765/0.3068, allocations: 3.512 MB / 0.5355 GB, free: 23.41 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3068, allocations: 4.062 kB / 0.5355 GB, free: 23.41 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009106/0.3077, allocations: 0.5835 MB / 0.5361 GB, free: 23.12 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.305e-05/0.3078, allocations: 125.3 kB / 0.5362 GB, free: 23 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.757e-05/0.3079, allocations: 2.562 kB / 0.5362 GB, free: 23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002102/0.3081, allocations: 32.69 kB / 0.5362 GB, free: 23 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.102e-05/0.3081, allocations: 28.45 kB / 0.5363 GB, free: 22.99 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.454e-05/0.3082, allocations: 9.562 kB / 0.5363 GB, free: 22.99 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000119/0.3083, allocations: 178.8 kB / 0.5364 GB, free: 22.88 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3083, allocations: 0 / 0.5364 GB, free: 22.88 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003945/0.3087, allocations: 104.7 kB / 0.5365 GB, free: 22.86 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 6,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.84e-05/0.3088, allocations: 104 kB / 0.5366 GB, free: 22.77 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008065/0.3096, allocations: 0.5854 MB / 0.5372 GB, free: 22.41 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.3096, allocations: 2.844 kB / 0.5372 GB, free: 22.41 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004578/0.3101, allocations: 445.1 kB / 0.5376 GB, free: 22.11 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003986/0.3105, allocations: 53.48 kB / 0.5377 GB, free: 22.08 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007762/0.3113, allocations: 0.6429 MB / 0.5383 GB, free: 21.66 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000156/0.3114, allocations: 0.7692 MB / 0.5391 GB, free: 20.96 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.183e-05/0.3115, allocations: 20.56 kB / 0.5391 GB, free: 20.95 MB / 378.7 MB Notification: Performance of SimCode: time 3.11e-07/0.3115, allocations: 0 / 0.5391 GB, free: 20.95 MB / 378.7 MB Notification: Performance of Templates: time 0.007333/0.3188, allocations: 5.522 MB / 0.5445 GB, free: 20.59 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/Ideal/IdealTwoWaySwitches/IdealTwoWaySwitches.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches