Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.IntegerNetwork1.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) 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(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009476/0.0009475, allocations: 191.2 kB / 17.38 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.199/1.199, allocations: 226.5 MB / 244.7 MB, free: 8.23 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007408/0.0007408, allocations: 99.33 kB / 296.7 MB, free: 6.891 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002213/0.0002214, allocations: 11.98 kB / 356.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.216/0.2162, allocations: 51.29 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.001448/0.2177, allocations: 1.505 MB / 409.6 MB, free: 26.19 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007399/0.2185, allocations: 0.6138 MB / 410.2 MB, free: 25.57 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.589e-05/0.2185, allocations: 4 kB / 410.2 MB, free: 25.57 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001006/0.2187, allocations: 25.12 kB / 410.3 MB, free: 25.54 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.959e-05/0.2188, allocations: 19.8 kB / 410.3 MB, free: 25.52 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002039/0.219, allocations: 72.39 kB / 410.4 MB, free: 25.45 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001551/0.2191, allocations: 160 kB / 410.5 MB, free: 25.3 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001381/0.2193, allocations: 70.88 kB / 410.6 MB, free: 25.23 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001151/0.2194, allocations: 60.88 kB / 410.6 MB, free: 25.17 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.912e-05/0.2195, allocations: 71.61 kB / 410.7 MB, free: 25.1 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.29e-05/0.2195, allocations: 8 kB / 410.7 MB, free: 25.09 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.598e-05/0.2196, allocations: 10.69 kB / 410.7 MB, free: 25.08 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.205e-05/0.2197, allocations: 35.84 kB / 410.8 MB, free: 25.05 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.268e-05/0.2197, allocations: 89.3 kB / 410.9 MB, free: 24.95 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001172/0.2199, allocations: 121 kB / 411 MB, free: 24.84 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2199, allocations: 0 / 411 MB, free: 24.84 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2199, allocations: 3.938 kB / 411 MB, free: 24.83 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.468e-06/0.2199, allocations: 0 / 411 MB, free: 24.83 MB / 298.7 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.0006879/0.2206, allocations: 0.4936 MB / 411.5 MB, free: 24.29 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.2206, allocations: 8.031 kB / 411.5 MB, free: 24.29 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.21e-05/0.2207, allocations: 54.72 kB / 411.5 MB, free: 24.22 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001289/0.2208, allocations: 28.75 kB / 411.6 MB, free: 24.2 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000182/0.221, allocations: 239.8 kB / 411.8 MB, free: 23.92 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.822e-05/0.221, allocations: 16.36 kB / 411.8 MB, free: 23.91 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.163e-05/0.221, allocations: 12.38 kB / 411.8 MB, free: 23.89 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000319/0.2214, allocations: 222.2 kB / 412 MB, free: 23.66 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.2214, allocations: 0 / 412 MB, free: 23.66 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.75e-05/0.2214, allocations: 7.938 kB / 412 MB, free: 23.65 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.816e-05/0.2214, allocations: 8 kB / 412.1 MB, free: 23.64 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002729/0.2217, allocations: 155.7 kB / 412.2 MB, free: 23.49 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007956/0.2225, allocations: 0.7895 MB / 413 MB, free: 22.64 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005389/0.2231, allocations: 210.6 kB / 413.2 MB, free: 22.42 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001256/0.2232, allocations: 68.81 kB / 413.3 MB, free: 22.35 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.585e-05/0.2232, allocations: 0 / 413.3 MB, free: 22.35 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002113/0.2235, allocations: 156.1 kB / 413.4 MB, free: 22.18 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.713e-06/0.2235, allocations: 0 / 413.4 MB, free: 22.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004802/0.224, allocations: 261.4 kB / 413.7 MB, free: 21.92 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.669e-05/0.224, allocations: 85.09 kB / 413.8 MB, free: 21.82 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001482/0.2241, allocations: 210.9 kB / 414 MB, free: 21.61 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.645e-05/0.2242, allocations: 33.7 kB / 414 MB, free: 21.57 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.958e-05/0.2242, allocations: 144.2 kB / 414.1 MB, free: 21.42 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.295e-05/0.2243, allocations: 31.62 kB / 414.2 MB, free: 21.39 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.778e-06/0.2243, allocations: 0 / 414.2 MB, free: 21.39 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.319e-05/0.2243, allocations: 338.8 kB / 414.5 MB, free: 21.05 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001391/0.2245, allocations: 75.95 kB / 414.6 MB, free: 20.98 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001464/0.2246, allocations: 144.4 kB / 414.7 MB, free: 20.8 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002682/0.2249, allocations: 216.5 kB / 414.9 MB, free: 20.56 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.2249, allocations: 0 / 414.9 MB, free: 20.56 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003635/0.2253, allocations: 253.2 kB / 415.2 MB, free: 20.31 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.207e-05/0.2253, allocations: 11.98 kB / 415.2 MB, free: 20.3 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.2253, allocations: 0 / 415.2 MB, free: 20.3 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.2253, allocations: 4 kB / 415.2 MB, free: 20.29 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001602/0.2255, allocations: 40.17 kB / 415.2 MB, free: 20.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.2255, allocations: 8 kB / 415.2 MB, free: 20.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001662/0.2257, allocations: 47.62 kB / 415.3 MB, free: 20.2 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.761e-05/0.2257, allocations: 12.38 kB / 415.3 MB, free: 20.19 MB / 298.7 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 (sum.u[1],product.u[1],product.u[2],product.y,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch1.u[1],multiSwitch1.u[2],$PRE.multiSwitch1.y,multiSwitch1.y,multiSwitch1.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart,multiSwitch1.expr[1],multiSwitch1.expr[2],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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.658e-05/0.2258, allocations: 140.1 kB / 415.4 MB, free: 20.04 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.478e-05/0.2258, allocations: 23.72 kB / 415.5 MB, free: 20.02 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002021/0.226, allocations: 138.9 kB / 415.6 MB, free: 19.87 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.2261, allocations: 4 kB / 415.6 MB, free: 19.87 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.2261, allocations: 0 / 415.6 MB, free: 19.87 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.2261, allocations: 7.922 kB / 415.6 MB, free: 19.86 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004375/0.2265, allocations: 474.3 kB / 416.1 MB, free: 19.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.043e-06/0.2265, allocations: 3.984 kB / 416.1 MB, free: 19.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001128/0.2266, allocations: 27.98 kB / 416.1 MB, free: 19.31 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.093e-06/0.2267, allocations: 0 / 416.1 MB, free: 19.31 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/0.2267, allocations: 3.938 kB / 416.1 MB, free: 19.3 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.2267, allocations: 4 kB / 416.1 MB, free: 19.3 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.2267, allocations: 0 / 416.1 MB, free: 19.3 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003236/0.227, allocations: 303.9 kB / 416.4 MB, free: 18.98 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.87e-05/0.2271, allocations: 96.84 kB / 416.5 MB, free: 18.87 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.771e-05/0.2271, allocations: 11.94 kB / 416.5 MB, free: 18.86 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001659/0.2273, allocations: 20.05 kB / 416.5 MB, free: 18.84 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.82e-05/0.2273, allocations: 23.97 kB / 416.6 MB, free: 18.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.682e-05/0.2274, allocations: 11.98 kB / 416.6 MB, free: 18.8 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.791e-05/0.2274, allocations: 144.4 kB / 416.7 MB, free: 18.66 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2274, allocations: 0 / 416.7 MB, free: 18.66 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002647/0.2277, allocations: 39.91 kB / 416.7 MB, free: 18.62 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005034/0.2282, allocations: 0.8384 MB / 417.6 MB, free: 17.76 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003115/0.2286, allocations: 182 kB / 417.8 MB, free: 17.58 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.2286, allocations: 0 / 417.8 MB, free: 17.58 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001478/0.2287, allocations: 84.02 kB / 417.8 MB, free: 17.5 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003148/0.229, allocations: 27.36 kB / 417.9 MB, free: 17.48 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001382/0.2304, allocations: 1.202 MB / 419.1 MB, free: 16.2 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001206/0.2306, allocations: 0.7284 MB / 419.8 MB, free: 15.44 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.237e-05/0.2307, allocations: 63.41 kB / 419.9 MB, free: 15.38 MB / 298.7 MB Notification: Performance of SimCode: time 2.51e-07/0.2307, allocations: 4 kB / 419.9 MB, free: 15.38 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.765/2.996, allocations: 2.842 MB / 422.7 MB, free: 12.53 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.IntegerNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Blocks.Examples.IntegerNetwork1_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Blocks_Examples_IntegerNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_trunk_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_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.Twidth,booleanPulse1.period,booleanPulse1.pulseStart,booleanPulse1.startTime,booleanPulse1.width,booleanPulse1.y,booleanPulse2.Twidth,booleanPulse2.period,booleanPulse2.pulseStart,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.firstActiveIndex,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.local_reset,triggeredAdd.local_set,triggeredAdd.trigger,triggeredAdd.u,triggeredAdd.use_reset,triggeredAdd.use_set,triggeredAdd.y,triggeredAdd.y_start