Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001143/0.001143, allocations: 105.5 kB / 18.4 MB, free: 4.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001199/0.0012, allocations: 191 kB / 19.33 MB, free: 3.758 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.273/1.273, allocations: 205.1 MB / 225.2 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00127/0.001271, allocations: 39.94 kB / 329.2 MB, free: 3.332 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07652/0.0778, allocations: 46.62 MB / 375.8 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003389/0.08123, allocations: 1.83 MB / 377.6 MB, free: 2.758 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001614/0.08288, allocations: 0.9478 MB / 378.6 MB, free: 1.801 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001328/0.08304, allocations: 4 kB / 378.6 MB, free: 1.797 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006535/0.08373, allocations: 167.5 kB / 378.7 MB, free: 1.633 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003792/0.08412, allocations: 127.5 kB / 378.9 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004593/0.08459, allocations: 151.6 kB / 379 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003157/0.08492, allocations: 211.3 kB / 379.2 MB, free: 1.152 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001253/0.08506, allocations: 25.53 kB / 379.2 MB, free: 1.129 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001745/0.08524, allocations: 83.67 kB / 379.3 MB, free: 1.047 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001545/0.0854, allocations: 91.61 kB / 379.4 MB, free: 0.957 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.339e-05/0.08544, allocations: 8 kB / 379.4 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001611/0.08561, allocations: 51.98 kB / 379.5 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.218e-05/0.0857, allocations: 55.81 kB / 379.5 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.451e-05/0.08579, allocations: 67.55 kB / 379.6 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003478/0.08615, allocations: 219.2 kB / 379.8 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.08616, allocations: 4 kB / 379.8 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.08617, allocations: 0 / 379.8 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.08619, allocations: 0 / 379.8 MB, free: 0.5586 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.1569/0.2431, allocations: 0.5248 MB / 380.3 MB, free: 13.3 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.833e-05/0.2432, allocations: 11.12 kB / 380.3 MB, free: 13.3 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.59e-05/0.2433, allocations: 23.16 kB / 380.4 MB, free: 13.29 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003048/0.2436, allocations: 255.5 kB / 380.6 MB, free: 13.07 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.68e-05/0.2436, allocations: 7.703 kB / 380.6 MB, free: 13.07 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.152e-05/0.2436, allocations: 6.953 kB / 380.6 MB, free: 13.07 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002424/0.2439, allocations: 115.4 kB / 380.7 MB, free: 13 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.2439, allocations: 1.203 kB / 380.7 MB, free: 13 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.564e-05/0.2439, allocations: 5.891 kB / 380.8 MB, free: 13 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.2439, allocations: 2.062 kB / 380.8 MB, free: 13 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001431/0.2441, allocations: 50.3 kB / 380.8 MB, free: 13 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005024/0.2446, allocations: 0.6066 MB / 381.4 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002293/0.2448, allocations: 129.1 kB / 381.5 MB, free: 12.41 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.26e-05/0.2449, allocations: 46.91 kB / 381.6 MB, free: 12.39 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.675e-05/0.245, allocations: 2.344 kB / 381.6 MB, free: 12.39 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000202/0.2452, allocations: 123.6 kB / 381.7 MB, free: 12.31 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 2.244e-06/0.2452, allocations: 3.344 kB / 381.7 MB, free: 12.31 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004258/0.2456, allocations: 178.5 kB / 381.9 MB, free: 12.27 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.742e-05/0.2457, allocations: 136.2 kB / 382 MB, free: 12.11 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002434/0.2459, allocations: 286.5 kB / 382.3 MB, free: 12.01 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.462e-05/0.246, allocations: 27.08 kB / 382.3 MB, free: 11.98 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.747e-05/0.246, allocations: 130.2 kB / 382.5 MB, free: 11.89 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.533e-05/0.246, allocations: 24.92 kB / 382.5 MB, free: 11.87 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.974e-05/0.2461, allocations: 42.98 kB / 382.5 MB, free: 11.86 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.974e-05/0.2462, allocations: 333.1 kB / 382.8 MB, free: 11.54 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.779e-05/0.2463, allocations: 32.11 kB / 382.9 MB, free: 11.54 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.902e-05/0.2464, allocations: 80.5 kB / 383 MB, free: 11.48 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001539/0.2465, allocations: 96.52 kB / 383 MB, free: 11.44 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.2465, allocations: 4.375 kB / 383.1 MB, free: 11.44 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002431/0.2468, allocations: 146.5 kB / 383.2 MB, free: 11.39 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/0.2468, allocations: 7.469 kB / 383.2 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.2468, allocations: 5.359 kB / 383.2 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.2468, allocations: 1.375 kB / 383.2 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.191e-05/0.2469, allocations: 14.25 kB / 383.2 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.2469, allocations: 5.734 kB / 383.2 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001136/0.2471, allocations: 15.77 kB / 383.2 MB, free: 11.38 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.22e-05/0.2471, allocations: 8.062 kB / 383.3 MB, free: 11.38 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition2,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,$whenCondition1,booleanExpression.y,pulse.pulseStart,$PRE.pulse.pulseStart,pulse.y,step.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0001027/0.2472, allocations: 151.2 kB / 383.4 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.43e-05/0.2472, allocations: 25.17 kB / 383.4 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.861e-05/0.2473, allocations: 24.53 kB / 383.4 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.2473, allocations: 3.312 kB / 383.4 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.2473, allocations: 1.375 kB / 383.5 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.2473, allocations: 0.75 kB / 383.5 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001927/0.2475, allocations: 241.8 kB / 383.7 MB, free: 11.04 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.2475, allocations: 1.344 kB / 383.7 MB, free: 11.04 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.123e-05/0.2476, allocations: 9.125 kB / 383.7 MB, free: 11.04 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.528e-06/0.2476, allocations: 6.641 kB / 383.7 MB, free: 11.04 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.311e-05/0.2476, allocations: 10.27 kB / 383.7 MB, free: 11.04 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.2476, allocations: 1.797 kB / 383.7 MB, free: 11.04 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.2476, allocations: 1.188 kB / 383.7 MB, free: 11.04 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003301/0.2479, allocations: 176.7 kB / 383.9 MB, free: 10.92 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.362e-05/0.248, allocations: 98.47 kB / 384 MB, free: 10.82 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.451e-05/0.248, allocations: 6.281 kB / 384 MB, free: 10.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001029/0.2481, allocations: 20.34 kB / 384 MB, free: 10.81 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.571e-05/0.2482, allocations: 19.12 kB / 384 MB, free: 10.8 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.611e-05/0.2482, allocations: 5.578 kB / 384 MB, free: 10.8 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002161/0.2485, allocations: 208.5 kB / 384.2 MB, free: 10.69 MB / 318.1 MB Notification: Performance of sort global known variables: time 5.81e-07/0.2485, allocations: 0 / 384.2 MB, free: 10.69 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002808/0.2488, allocations: 43.33 kB / 384.3 MB, free: 10.68 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0008744/0.2496, allocations: 409.2 kB / 384.7 MB, free: 10.39 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002803/0.2499, allocations: 91.56 kB / 384.8 MB, free: 10.36 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.2499, allocations: 0.9375 kB / 384.8 MB, free: 10.36 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001259/0.2501, allocations: 53.11 kB / 384.8 MB, free: 10.34 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003464/0.2504, allocations: 78.3 kB / 384.9 MB, free: 10.3 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005319/0.251, allocations: 382.6 kB / 385.3 MB, free: 10.04 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001505/0.2511, allocations: 0.7301 MB / 386 MB, free: 9.336 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.138e-05/0.2512, allocations: 24.62 kB / 386 MB, free: 9.324 MB / 318.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2512, allocations: 0 / 386 MB, free: 9.324 MB / 318.1 MB Notification: Performance of Templates: time 0.005194/0.2564, allocations: 2.908 MB / 388.9 MB, free: 8.98 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches