Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001286/0.001287, allocations: 114 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001443/0.001443, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.316/1.316, allocations: 227.4 MB / 246.4 MB, free: 9.086 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 64.58 kB / 306.6 MB, free: 0.6289 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08207/0.08325, allocations: 50.53 MB / 357.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.1432/0.2265, allocations: 14.07 MB / 371.2 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01679/0.2433, allocations: 20.18 MB / 391.3 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002169/0.2455, allocations: 66.34 kB / 391.4 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003393/0.249, allocations: 0.9774 MB / 392.4 MB, free: 496 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008399/0.2574, allocations: 1.964 MB / 394.3 MB, free: 15.35 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005094/0.2626, allocations: 1.263 MB / 395.6 MB, free: 14.71 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009975/0.2726, allocations: 6.557 MB / 402.2 MB, free: 11.99 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007065/0.2733, allocations: 432.8 kB / 402.6 MB, free: 11.77 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001717/0.275, allocations: 1.07 MB / 403.6 MB, free: 11.26 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001673/0.2767, allocations: 1.084 MB / 404.7 MB, free: 10.62 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002527/0.277, allocations: 81.38 kB / 404.8 MB, free: 10.62 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004792/0.2818, allocations: 1.491 MB / 406.3 MB, free: 9.984 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004224/0.2822, allocations: 323.4 kB / 406.6 MB, free: 9.727 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001982/0.2842, allocations: 1.327 MB / 407.9 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004492/0.2887, allocations: 3.646 MB / 411.6 MB, free: 5.09 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.2887, allocations: 0 / 411.6 MB, free: 5.09 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2887, allocations: 0 / 411.6 MB, free: 5.09 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001043/0.2888, allocations: 0 / 411.6 MB, free: 5.09 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: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.005575/0.2944, allocations: 3.577 MB / 415.2 MB, free: 1.441 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.977e-05/0.2945, allocations: 8.031 kB / 415.2 MB, free: 1.434 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001206/0.2946, allocations: 90.52 kB / 415.3 MB, free: 1.336 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004142/0.295, allocations: 387.4 kB / 415.6 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003405/0.2984, allocations: 2.544 MB / 418.2 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.033e-05/0.2985, allocations: 40.94 kB / 418.2 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001171/0.2986, allocations: 48 kB / 418.3 MB, free: 14.24 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001396/0.3, allocations: 0.7499 MB / 419 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.44e-05/0.3, allocations: 0 / 419 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.229e-05/0.3001, allocations: 27.98 kB / 419.1 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.992e-05/0.3001, allocations: 16 kB / 419.1 MB, free: 13.44 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001741/0.3019, allocations: 0.8631 MB / 419.9 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004376/0.3063, allocations: 2.966 MB / 422.9 MB, free: 9.535 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00159/0.3079, allocations: 0.792 MB / 423.7 MB, free: 8.73 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001431/0.3093, allocations: 0.9566 MB / 424.6 MB, free: 7.773 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0289/0.3382, allocations: 30.69 MB / 455.3 MB, free: 4.832 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00109/0.3393, allocations: 0.5996 MB / 455.9 MB, free: 4.223 MB / 366.1 MB Notification: Performance of pre-optimization done (n=96): time 2.815e-06/0.3394, allocations: 0 / 455.9 MB, free: 4.223 MB / 366.1 MB Notification: Performance of matching and sorting (n=99): time 0.01084/0.3502, allocations: 5.221 MB / 461.2 MB, free: 14.74 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.09e-05/0.3503, allocations: 68.39 kB / 461.2 MB, free: 14.66 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002919/0.3532, allocations: 2.7 MB / 463.9 MB, free: 11.95 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.654e-05/0.3533, allocations: 41.7 kB / 464 MB, free: 11.9 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009593/0.3542, allocations: 1.303 MB / 465.3 MB, free: 10.59 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002434/0.3545, allocations: 331.2 kB / 465.6 MB, free: 10.27 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003254/0.3548, allocations: 238.2 kB / 465.8 MB, free: 10.03 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.3549, allocations: 341.9 kB / 466.2 MB, free: 9.688 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00111/0.3561, allocations: 481.9 kB / 466.6 MB, free: 9.215 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001194/0.3573, allocations: 0.6438 MB / 467.3 MB, free: 8.512 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002287/0.3596, allocations: 1.137 MB / 468.4 MB, free: 7.309 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.3596, allocations: 4.875 kB / 468.4 MB, free: 7.305 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003455/0.363, allocations: 1.976 MB / 470.4 MB, free: 5.25 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.3631, allocations: 4 kB / 470.4 MB, free: 5.246 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001401/0.3632, allocations: 120 kB / 470.5 MB, free: 5.129 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000625/0.3638, allocations: 276.6 kB / 470.8 MB, free: 4.828 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007904/0.3646, allocations: 187.7 kB / 471 MB, free: 4.645 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008349/0.373, allocations: 14.25 MB / 485.2 MB, free: 5.004 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001043/0.3741, allocations: 93.02 kB / 485.3 MB, free: 4.914 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001043/0.3742, allocations: 56 kB / 485.4 MB, free: 4.859 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 21 (v.counter,$PRE.v.counter,vin2.counter,$PRE.vin2.counter,vin1.counter,$PRE.vin1.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006009/0.3748, allocations: 425.5 kB / 485.8 MB, free: 4.434 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003581/0.3751, allocations: 375.5 kB / 486.1 MB, free: 4.062 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004557/0.3797, allocations: 2.213 MB / 488.4 MB, free: 1.77 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.007e-05/0.3797, allocations: 12 kB / 488.4 MB, free: 1.758 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.144e-06/0.3797, allocations: 4 kB / 488.4 MB, free: 1.754 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.3798, allocations: 3.984 kB / 488.4 MB, free: 1.75 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001547/0.3813, allocations: 1.539 MB / 489.9 MB, free: 164 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001266/0.3814, allocations: 116 kB / 490 MB, free: 48 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000686/0.3821, allocations: 143.8 kB / 490.2 MB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005736/0.3827, allocations: 264.3 kB / 490.4 MB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.614e-05/0.3828, allocations: 47.98 kB / 490.5 MB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008298/0.3911, allocations: 14.24 MB / 0.4929 GB, free: 15.93 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.3911, allocations: 0 / 0.4929 GB, free: 15.93 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004635/0.3958, allocations: 2.543 MB / 0.4954 GB, free: 13.29 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006428/0.3964, allocations: 0.4888 MB / 0.4959 GB, free: 12.78 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003068/0.3967, allocations: 16 kB / 0.4959 GB, free: 12.77 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009212/0.3977, allocations: 83.83 kB / 0.4959 GB, free: 12.68 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003062/0.398, allocations: 140.8 kB / 0.4961 GB, free: 12.55 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.066e-05/0.3981, allocations: 51.98 kB / 0.4961 GB, free: 12.5 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001918/0.4, allocations: 1.774 MB / 0.4979 GB, free: 10.71 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4, allocations: 4 kB / 0.4979 GB, free: 10.71 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001229/0.4013, allocations: 0.6562 MB / 0.4985 GB, free: 10.05 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (mp1.Dinternal,mp1.Sinternal,mp2.Dinternal,mp2.Sinternal,mn1.Dinternal,mn1.Sinternal,mn2.Dinternal,mn2.Sinternal) * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 6 (vin1.counter,vin2.counter,v.counter,vin1.counter2,vin2.counter2,v.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 9 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005903/0.4072, allocations: 3.807 MB / 0.5022 GB, free: 6.141 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003856/0.411, allocations: 2.549 MB / 0.5047 GB, free: 3.438 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.411, allocations: 0 / 0.5047 GB, free: 3.438 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002216/0.4133, allocations: 1.956 MB / 0.5066 GB, free: 1.328 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002116/0.4154, allocations: 0.6277 MB / 0.5072 GB, free: 0.6953 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1608/0.5763, allocations: 23.09 MB / 0.5298 GB, free: 142.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009432/0.5772, allocations: 1.66 MB / 0.5314 GB, free: 142.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001396/0.5786, allocations: 394 kB / 0.5318 GB, free: 142.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009132/0.5796, allocations: 1.195 MB / 0.533 GB, free: 141.7 MB / 446.1 MB Notification: Performance of SimCode: time 7.01e-07/0.5796, allocations: 0 / 0.533 GB, free: 141.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.166/1.746, allocations: 65.44 MB / 0.5969 GB, free: 90.29 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002246/1.746, allocations: 211.3 kB / 0.5971 GB, free: 90.03 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.51/6.256, allocations: 0 / 0.5971 GB, free: 90.03 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches