Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001702/0.001712, allocations: 111.8 kB / 17.06 MB, free: 6 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.002112/0.002112, allocations: 198.9 kB / 18 MB, free: 5.078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.327/2.327, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002069/0.002069, allocations: 51.91 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.518/0.5201, allocations: 49.44 MB / 400.2 MB, free: 8.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.006194/0.5264, allocations: 1.816 MB / 402 MB, free: 6.969 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002003/0.5284, allocations: 0.6262 MB / 402.7 MB, free: 6.344 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002243/0.5287, allocations: 7.938 kB / 402.7 MB, free: 6.336 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002296/0.5289, allocations: 27.67 kB / 402.7 MB, free: 6.309 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002526/0.5292, allocations: 31.72 kB / 402.7 MB, free: 6.277 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005042/0.5298, allocations: 87.78 kB / 402.8 MB, free: 6.191 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004008/0.5302, allocations: 175.5 kB / 403 MB, free: 6.02 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002836/0.5305, allocations: 70.64 kB / 403.1 MB, free: 5.941 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002036/0.5307, allocations: 67.7 kB / 403.1 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002383/0.531, allocations: 87.55 kB / 403.2 MB, free: 5.789 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.982e-05/0.531, allocations: 19.94 kB / 403.2 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001107/0.5311, allocations: 24 kB / 403.3 MB, free: 5.746 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001019/0.5313, allocations: 47.83 kB / 403.3 MB, free: 5.699 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001432/0.5314, allocations: 87.47 kB / 403.4 MB, free: 5.613 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004129/0.5319, allocations: 196.9 kB / 403.6 MB, free: 5.422 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.237e-06/0.5319, allocations: 0 / 403.6 MB, free: 5.422 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.5319, allocations: 3.938 kB / 403.6 MB, free: 5.418 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.053e-05/0.5319, allocations: 4 kB / 403.6 MB, free: 5.414 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.001379/0.5333, allocations: 0.505 MB / 404.1 MB, free: 4.863 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.131e-05/0.5334, allocations: 15.95 kB / 404.1 MB, free: 4.848 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.437e-05/0.5335, allocations: 50.73 kB / 404.2 MB, free: 4.789 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.419e-05/0.5336, allocations: 20.75 kB / 404.2 MB, free: 4.77 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004249/0.534, allocations: 240.4 kB / 404.4 MB, free: 4.496 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.25e-05/0.5341, allocations: 20.11 kB / 404.4 MB, free: 4.477 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.806e-05/0.5341, allocations: 16 kB / 404.4 MB, free: 4.461 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005438/0.5347, allocations: 214.3 kB / 404.7 MB, free: 4.23 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/0.5347, allocations: 4 kB / 404.7 MB, free: 4.227 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.466e-05/0.5347, allocations: 7.938 kB / 404.7 MB, free: 4.219 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.905e-05/0.5348, allocations: 11.98 kB / 404.7 MB, free: 4.207 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004927/0.5353, allocations: 135.8 kB / 404.8 MB, free: 4.074 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001571/0.5368, allocations: 0.7854 MB / 405.6 MB, free: 3.227 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009388/0.5378, allocations: 190.6 kB / 405.8 MB, free: 3.031 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002582/0.5381, allocations: 64.81 kB / 405.8 MB, free: 2.965 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.886e-05/0.5382, allocations: 4 kB / 405.9 MB, free: 2.961 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003944/0.5386, allocations: 149 kB / 406 MB, free: 2.797 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 6.792e-06/0.5386, allocations: 0 / 406 MB, free: 2.797 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0009373/0.5396, allocations: 245.2 kB / 406.2 MB, free: 2.551 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.035e-05/0.5397, allocations: 85.05 kB / 406.3 MB, free: 2.449 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002994/0.54, allocations: 214.9 kB / 406.5 MB, free: 2.227 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.367e-05/0.54, allocations: 33.7 kB / 406.6 MB, free: 2.188 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001461/0.5402, allocations: 152.2 kB / 406.7 MB, free: 2.035 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.919e-05/0.5402, allocations: 28 kB / 406.7 MB, free: 2.008 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001359/0.5404, allocations: 57.69 kB / 406.8 MB, free: 1.945 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.5405, allocations: 330.8 kB / 407.1 MB, free: 1.613 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002849/0.5408, allocations: 67.95 kB / 407.2 MB, free: 1.547 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003212/0.5412, allocations: 136.4 kB / 407.3 MB, free: 1.383 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005863/0.5418, allocations: 208.4 kB / 407.5 MB, free: 1.148 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.5418, allocations: 3.938 kB / 407.5 MB, free: 1.145 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0007584/0.5426, allocations: 249.2 kB / 407.8 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/0.5426, allocations: 8 kB / 407.8 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.5426, allocations: 4 kB / 407.8 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.12e-05/0.5427, allocations: 0 / 407.8 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002827/0.543, allocations: 47.84 kB / 407.8 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.921e-05/0.543, allocations: 7.984 kB / 407.8 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002897/0.5433, allocations: 47.86 kB / 407.9 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.823e-05/0.5433, allocations: 7.984 kB / 407.9 MB, free: 0.7734 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 25 (product.y,product.u[2],product.u[1],sum.u[1],triggeredAdd.y,$PRE.triggeredAdd.y,$whenCondition3,$whenCondition2,multiSwitch1.expr[2],multiSwitch1.expr[1],booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch1.firstActiveIndex,multiSwitch1.y,$PRE.multiSwitch1.y,multiSwitch1.u[2],multiSwitch1.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart,$whenCondition1,triggeredAdd.local_set,triggeredAdd.local_reset,showValue2.number,showValue1.number,showValue.number) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0002029/0.5436, allocations: 144.1 kB / 408 MB, free: 0.625 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.869e-05/0.5436, allocations: 15.81 kB / 408 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003879/0.544, allocations: 135.3 kB / 408.2 MB, free: 480 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.945e-06/0.544, allocations: 3.938 kB / 408.2 MB, free: 476 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.283e-05/0.5441, allocations: 4 kB / 408.2 MB, free: 472 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.5441, allocations: 7.984 kB / 408.2 MB, free: 464 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009996/0.5451, allocations: 486.2 kB / 408.7 MB, free: 15.92 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/0.5451, allocations: 0 / 408.7 MB, free: 15.92 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001808/0.5453, allocations: 23.86 kB / 408.7 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.57e-06/0.5453, allocations: 0 / 408.7 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.525e-05/0.5454, allocations: 7.984 kB / 408.7 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.5454, allocations: 0 / 408.7 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.5454, allocations: 0 / 408.7 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006722/0.5461, allocations: 292 kB / 409 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.589e-05/0.5462, allocations: 96.8 kB / 409.1 MB, free: 15.47 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.459e-05/0.5462, allocations: 4 kB / 409.1 MB, free: 15.47 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003022/0.5465, allocations: 20.16 kB / 409.1 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001246/0.5467, allocations: 23.97 kB / 409.1 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.113e-05/0.5467, allocations: 11.94 kB / 409.1 MB, free: 15.41 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002107/0.547, allocations: 144.6 kB / 409.3 MB, free: 15.27 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.547, allocations: 0 / 409.3 MB, free: 15.27 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005642/0.5475, allocations: 39.91 kB / 409.3 MB, free: 15.23 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 (multiSwitch1.u[1],$whenCondition3,$whenCondition2,$whenCondition1,triggeredAdd.y,booleanPulse1.pulseStart,multiSwitch1.u[2],multiSwitch1.y,multiSwitch1.firstActiveIndex,booleanPulse2.pulseStart,sum.u[1],product.u[1],product.u[2],product.y) * Number of discrete states: 2 (multiSwitch1.y,triggeredAdd.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * 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.001208/0.5488, allocations: 0.8411 MB / 410.2 MB, free: 14.37 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006364/0.5494, allocations: 163.8 kB / 410.3 MB, free: 14.21 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.5494, allocations: 0 / 410.3 MB, free: 14.21 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002982/0.5498, allocations: 80.39 kB / 410.4 MB, free: 14.13 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005772/0.5503, allocations: 27.98 kB / 410.4 MB, free: 14.1 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004409/0.5548, allocations: 2.238 MB / 412.7 MB, free: 11.71 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004406/0.5552, allocations: 0.7319 MB / 413.4 MB, free: 10.96 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001847/0.5554, allocations: 33.53 kB / 413.4 MB, free: 10.92 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001778/0.5556, allocations: 67.41 kB / 413.5 MB, free: 10.86 MB / 334.1 MB Notification: Performance of SimCode: time 9.42e-07/0.5557, allocations: 3.938 kB / 413.5 MB, free: 10.85 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0349/0.5906, allocations: 4.168 MB / 417.7 MB, free: 6.77 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.33/15.92, allocations: 16.95 kB / 417.7 MB, free: 6.754 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,multiSwitch1.y,triggeredAdd.y Variables in the result:booleanPulse1.period,booleanPulse1.startTime,booleanPulse1.width,booleanPulse1.y,booleanPulse2.period,booleanPulse2.startTime,booleanPulse2.width,booleanPulse2.y,integerConstant.k,integerConstant.y,integerStep.height,integerStep.offset,integerStep.startTime,integerStep.y,multiSwitch1.expr[1],multiSwitch1.expr[2],multiSwitch1.nu,multiSwitch1.u[1],multiSwitch1.u[2],multiSwitch1.use_pre_as_default,multiSwitch1.y,multiSwitch1.y_default,product.nu,product.u[1],product.u[2],product.y,realToInteger.u,realToInteger.y,showValue.number,showValue.numberPort,showValue.showNumber,showValue.use_numberPort,showValue1.number,showValue1.numberPort,showValue1.showNumber,showValue1.use_numberPort,showValue2.number,showValue2.numberPort,showValue2.showNumber,showValue2.use_numberPort,showValue3.number,showValue3.showNumber,showValue3.use_numberPort,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,sum.k[1],sum.k[2],sum.k[3],sum.nu,sum.u[1],sum.u[2],sum.u[3],sum.y,time,triggeredAdd.trigger,triggeredAdd.u,triggeredAdd.use_reset,triggeredAdd.use_set,triggeredAdd.y,triggeredAdd.y_start